diff options
author | Zac Medico <zmedico@gentoo.org> | 2006-03-18 01:58:21 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2006-03-18 01:58:21 +0000 |
commit | 42b3d6abac79ef6e5fb6d40536b710d9fff85611 (patch) | |
tree | 1566e82927cae8a6f281e34614057896ede63d76 | |
parent | 0706648aaa88b9f13259d2e5dc28d3257bb85a04 (diff) | |
download | portage-42b3d6abac79ef6e5fb6d40536b710d9fff85611.tar.gz portage-42b3d6abac79ef6e5fb6d40536b710d9fff85611.tar.bz2 portage-42b3d6abac79ef6e5fb6d40536b710d9fff85611.zip |
Use apply_recursive_permissions for DISTCC_DIR.
svn path=/main/trunk/; revision=2928
-rw-r--r-- | pym/portage.py | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/pym/portage.py b/pym/portage.py index b4c7d4f4e..f29f0f531 100644 --- a/pym/portage.py +++ b/pym/portage.py @@ -2630,13 +2630,10 @@ def prepare_build_dirs(myroot, mysettings, cleanup): break else: raise - try: - distcc_enabled = apply_secpass_permissions(mydir, - uid=portage_uid, gid=portage_gid, mode=02775) - except portage_exception.OperationNotPermitted, e: - writemsg("Operation Not Permitted: %s\n" % str(e)) - distcc_enabled = False - break + + distcc_enabled = apply_recursive_permissions( + mysettings["DISTCC_DIR"], gid=portage_gid, + dirmode=02070, dirmask=02, filemode=060, filemask=02) if not distcc_enabled: writemsg("\n!!! File system problem when setting DISTCC_DIR directory permissions.\n") |