From 2552e4fe5e2bb58fda08fdeffbca278c26ed7a1a Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sun, 8 Apr 2007 19:37:13 +0000 Subject: =?UTF-8?q?Only=20apply=20permissions=20to=20ccache,=20confcache,?= =?UTF-8?q?=20and=20distcc=20dirs=20when=20they=20are=20created=20in=20ord?= =?UTF-8?q?er=20to=20avoid=20interference=20with=20whatever=20the=20user's?= =?UTF-8?q?=20preferred=20permissions=20are.=20=20Thanks=20to=20Diego=20Pe?= =?UTF-8?q?tten=C3=B2=20=20for=20reporting.=20(trunk?= =?UTF-8?q?=20r6353:6354)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit svn path=/main/branches/2.1.2/; revision=6355 --- pym/portage.py | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'pym') diff --git a/pym/portage.py b/pym/portage.py index 1847d8626..9ccd52c11 100644 --- a/pym/portage.py +++ b/pym/portage.py @@ -3152,12 +3152,12 @@ def prepare_build_dirs(myroot, mysettings, cleanup): "confcache":{ "basedir_var":"CONFCACHE_DIR", "default_dir":os.path.join(mysettings["PORTAGE_TMPDIR"], "confcache"), - "always_recurse":True}, + "always_recurse":False}, "distcc":{ "basedir_var":"DISTCC_DIR", "default_dir":os.path.join(mysettings["BUILD_PREFIX"], ".distcc"), "subdirs":("lock", "state"), - "always_recurse":True} + "always_recurse":False} } dirmode = 02070 filemode = 060 @@ -3174,11 +3174,10 @@ def prepare_build_dirs(myroot, mysettings, cleanup): for subdir in kwargs["subdirs"]: mydirs.append(os.path.join(basedir, subdir)) for mydir in mydirs: - modified = portage_util.ensure_dirs(mydir, - gid=portage_gid, mode=dirmode, mask=modemask) - # To avoid excessive recursive stat calls, we trigger - # recursion when the top level directory does not initially - # match our permission requirements. + modified = portage_util.ensure_dirs(mydir) + # Generally, we only want to apply permissions for + # initial creation. Otherwise, we don't know exactly what + # permissions the user wants, so should leave them as-is. if modified or kwargs["always_recurse"]: if modified: writemsg("Adjusting permissions recursively: '%s'\n" % mydir, -- cgit v1.2.3-1-g7c22