summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-01-08 04:56:31 +0000
committerZac Medico <zmedico@gentoo.org>2008-01-08 04:56:31 +0000
commitab14e235076f4ad46e8fa1fcd15f7c3786ba867e (patch)
tree2dfb80c57f70f441a35c9b6e54bfc6f7dc05b44d
parentb2b99a7909cca324f983835b9887839bb3ea1d21 (diff)
downloadportage-ab14e235076f4ad46e8fa1fcd15f7c3786ba867e.tar.gz
portage-ab14e235076f4ad46e8fa1fcd15f7c3786ba867e.tar.bz2
portage-ab14e235076f4ad46e8fa1fcd15f7c3786ba867e.zip
When spawing the "depend" phase, use file descriptors from sys.std*
streams. svn path=/main/trunk/; revision=9157
-rw-r--r--pym/portage/__init__.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py
index a9d430071..c56286069 100644
--- a/pym/portage/__init__.py
+++ b/pym/portage/__init__.py
@@ -4394,7 +4394,11 @@ def doebuild(myebuild, mydo, myroot, mysettings, debug=0, listonly=0,
if isinstance(dbkey, dict):
mysettings["dbkey"] = ""
pr, pw = os.pipe()
- fd_pipes = {0:0, 1:1, 2:2, 9:pw}
+ fd_pipes = {
+ 0:sys.stdin.fileno(),
+ 1:sys.stdout.fileno(),
+ 2:sys.stderr.fileno(),
+ 9:pw}
mypids = spawn(_shell_quote(ebuild_sh_binary) + " depend",
mysettings,
fd_pipes=fd_pipes, returnpid=True, droppriv=droppriv)