diff options
author | Zac Medico <zmedico@gentoo.org> | 2007-06-06 05:58:17 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2007-06-06 05:58:17 +0000 |
commit | 2924d703e4cbe5fbd53569a7d469a016a04d5c9f (patch) | |
tree | 5750d3fe886556844cabb11da3dc9be6203f4066 | |
parent | 183281fb9ebbce1adfc022a4b627ebc61e17eb0d (diff) | |
download | portage-2924d703e4cbe5fbd53569a7d469a016a04d5c9f.tar.gz portage-2924d703e4cbe5fbd53569a7d469a016a04d5c9f.tar.bz2 portage-2924d703e4cbe5fbd53569a7d469a016a04d5c9f.zip |
For bug #82378, only set permissions on PORT_LOGDIR if it is created automatically.
svn path=/main/trunk/; revision=6743
-rw-r--r-- | pym/portage/__init__.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py index 901e25875..c931ed32a 100644 --- a/pym/portage/__init__.py +++ b/pym/portage/__init__.py @@ -3365,8 +3365,10 @@ def prepare_build_dirs(myroot, mysettings, cleanup): del mysettings["PORT_LOGDIR"] if "PORT_LOGDIR" in mysettings: try: - portage.util.ensure_dirs(mysettings["PORT_LOGDIR"], - uid=portage_uid, gid=portage_gid, mode=02770) + modified = portage.util.ensure_dirs(mysettings["PORT_LOGDIR"]) + if modified: + apply_secpass_permissions(mysettings["PORT_LOGDIR"], + uid=portage_uid, gid=portage_gid, mode=02770) except portage.exception.PortageException, e: writemsg("!!! %s\n" % str(e), noiselevel=-1) writemsg("!!! Permission issues with PORT_LOGDIR='%s'\n" % \ |