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

pym/portage.py

index c571c2ce2999ab858666473b598e1e94784993db..edb1de9a9b45226e3068c1905231f1f0095d1861 100644 (file)
@@ -3191,7 +3191,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"],