summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-06-06 06:02:58 +0000
committerZac Medico <zmedico@gentoo.org>2007-06-06 06:02:58 +0000
commit170795b32a1eb830e519472dc4cca4cc0101865f (patch)
treeb372833ca8276ce21f35e5ec117a85e777bc032f
parentImprove support for slot deps atoms given on the command line. (trunk r6730) (diff)
downloadportage-multirepo-170795b32a1eb830e519472dc4cca4cc0101865f.tar.gz
portage-multirepo-170795b32a1eb830e519472dc4cca4cc0101865f.tar.bz2
portage-multirepo-170795b32a1eb830e519472dc4cca4cc0101865f.zip
For bug #82378, only set permissions on PORT_LOGDIR if it is created automatically. (trunk r6743)
svn path=/main/branches/2.1.2/; revision=6744
-rw-r--r--pym/portage.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/pym/portage.py b/pym/portage.py
index 8cc167db..8e8f87b7 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" % \