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

pym/portage.py

index ac4371b44213c586f1d42838e7bdaf0db7f44f99..a7ada84e426f38d16f1c76f4735c4b03734eef16 100644 (file)
@@ -3652,7 +3652,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 = []