Make sure confcache files are writable by the portage group, not just the portage...
authorMarien Zwart <marienz@gentoo.org>
Mon, 6 Feb 2006 01:41:10 +0000 (01:41 -0000)
committerMarien Zwart <marienz@gentoo.org>
Mon, 6 Feb 2006 01:41:10 +0000 (01:41 -0000)
svn path=/main/trunk/; revision=2671

pym/portage.py

index 4bd7a65ac99c9ed689fc438cbec6b6b5050606c7..f5949bd5ea6e6f1537374b85476cd359120896d0 100644 (file)
@@ -2685,8 +2685,8 @@ def doebuild(myebuild,mydo,myroot,mysettings,debug=0,listonly=0,fetchonly=0,clea
                                for x in listdir(mysettings["CONFCACHE_DIR"]):
                                        p = os.path.join(mysettings["CONFCACHE_DIR"], x)
                                        st = os.stat(p)
-                                       if not (st.st_mode & 07777) & 07600 == 0600:
-                                               os.chmod(p, (st.st_mode & 0777) | 0600)
+                                       if not (st.st_mode & 07777) & 07660 == 0660:
+                                               os.chmod(p, (st.st_mode & 0777) | 0660)
                                        if not st.st_gid == portage_gid:
                                                os.chown(p, -1, portage_gid)