Add droppriv keyword for the depend phase (last one).
authorZac Medico <zmedico@gentoo.org>
Tue, 24 Jul 2007 06:57:51 +0000 (06:57 -0000)
committerZac Medico <zmedico@gentoo.org>
Tue, 24 Jul 2007 06:57:51 +0000 (06:57 -0000)
svn path=/main/trunk/; revision=7387

pym/portage/__init__.py

index 4efc04f5b8b2aa94f0b954d4f282375ed410795d..4dcbec1eb9a2c00f97e9938736bde433afaa1ade 100644 (file)
@@ -3763,7 +3763,7 @@ def doebuild(myebuild, mydo, myroot, mysettings, debug=0, listonly=0,
                                pr, pw = os.pipe()
                                fd_pipes = {0:0, 1:1, 2:2, 9:pw}
                                mypids = spawn(EBUILD_SH_BINARY + " depend", mysettings,
-                                       fd_pipes=fd_pipes, returnpid=True)
+                                       fd_pipes=fd_pipes, returnpid=True, droppriv=1)
                                os.close(pw) # belongs exclusively to the child process now
                                maxbytes = 1024
                                mybytes = []