summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2006-03-17 06:25:09 +0000
committerZac Medico <zmedico@gentoo.org>2006-03-17 06:25:09 +0000
commit3db036950765176584795d37272c4b33a09ff5a0 (patch)
tree512f4c9f22e607f2c02686cda83b0ce8b42c41ea
parentc4f4d9d9ae9b739aa701dc100fd4905afa257842 (diff)
downloadportage-3db036950765176584795d37272c4b33a09ff5a0.tar.gz
portage-3db036950765176584795d37272c4b33a09ff5a0.tar.bz2
portage-3db036950765176584795d37272c4b33a09ff5a0.zip
Disable confcache when it's not possible to apply correct group permissions to an existing file in CONFCACHE_DIR.
svn path=/main/trunk/; revision=2913
-rw-r--r--pym/portage.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/portage.py b/pym/portage.py
index 0baa93bc2..bdc579c52 100644
--- a/pym/portage.py
+++ b/pym/portage.py
@@ -2605,7 +2605,7 @@ def prepare_build_dirs(myroot, mysettings, cleanup):
for x in listdir(mysettings["CONFCACHE_DIR"]):
cache_file = os.path.join(mysettings["CONFCACHE_DIR"], x)
try:
- apply_secpass_permissions(cache_file, gid=portage_gid, mode=0660, mask=07000)
+ confcache_enabled = apply_secpass_permissions(cache_file, gid=portage_gid, mode=0660, mask=07000)
except portage_exception.OperationNotPermitted, e:
writemsg("Operation Not Permitted: %s\n" % str(e))
confcache_enabled = False