From c454ce95d8799e64237ef20567c0f9727736b5b7 Mon Sep 17 00:00:00 2001 From: Marien Zwart Date: Mon, 6 Feb 2006 01:41:10 +0000 Subject: Make sure confcache files are writable by the portage group, not just the portage user. svn path=/main/trunk/; revision=2671 --- pym/portage.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pym/portage.py') diff --git a/pym/portage.py b/pym/portage.py index 4bd7a65ac..f5949bd5e 100644 --- a/pym/portage.py +++ b/pym/portage.py @@ -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) -- cgit v1.2.3-1-g7c22