Bug #188703 - Don't adjust permissions in ${T} unless userpriv is enabled.
authorZac Medico <zmedico@gentoo.org>
Wed, 22 Aug 2007 15:29:47 +0000 (15:29 -0000)
committerZac Medico <zmedico@gentoo.org>
Wed, 22 Aug 2007 15:29:47 +0000 (15:29 -0000)
svn path=/main/trunk/; revision=7661

pym/portage/__init__.py

index 58cf5e4b12d1f0fb1740f285ab1bcc1e1f765720..283b49be9c09d5c4babf3ee59bc9fab644e0c8fd 100644 (file)
@@ -3240,7 +3240,8 @@ def spawnebuild(mydo,actionmap,mysettings,debug,alwaysdep=0,logfile=None):
        phase_retval = spawn(actionmap[mydo]["cmd"] % mydo, mysettings, debug=debug, logfile=logfile, **kwargs)
        mysettings["EBUILD_PHASE"] = ""
 
-       if not kwargs["droppriv"] and secpass >= 2:
+       if "userpriv" in mysettings.features and \
+               not kwargs["droppriv"] and secpass >= 2:
                """ Privileged phases may have left files that need to be made
                writable to a less privileged user."""
                apply_recursive_permissions(mysettings["T"],