summaryrefslogtreecommitdiffstats
path: root/pym
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-07-30 03:02:17 +0000
committerZac Medico <zmedico@gentoo.org>2007-07-30 03:02:17 +0000
commitae8696d0495b063f6d1159e24d3f88b091cd74e9 (patch)
tree041b3b837555f602f1a2db39d2c1be2e40c1f83d /pym
parent72145ac0d9ba439e663b8267f691125dece74499 (diff)
downloadportage-ae8696d0495b063f6d1159e24d3f88b091cd74e9.tar.gz
portage-ae8696d0495b063f6d1159e24d3f88b091cd74e9.tar.bz2
portage-ae8696d0495b063f6d1159e24d3f88b091cd74e9.zip
For bug #82378, only set permissions on PORT_LOGDIR if it is created automatically. (branches/2.1.2 r6744)
svn path=/main/branches/2.1.2.9/; revision=7443
Diffstat (limited to 'pym')
-rw-r--r--pym/portage.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/pym/portage.py b/pym/portage.py
index db74bc8ea..167460f83 100644
--- a/pym/portage.py
+++ b/pym/portage.py
@@ -3262,8 +3262,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" % \