summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2011-12-13 10:35:19 -0800
committerZac Medico <zmedico@gentoo.org>2011-12-13 10:35:19 -0800
commita628147b632ad8b33296f5698d30410854cf1d75 (patch)
tree2ca50080c486509918dc9e70e9679a3bba517b54
parenta3797a63a30579be3ba5418aad7e76fd520f9aee (diff)
downloadportage-a628147b632ad8b33296f5698d30410854cf1d75.tar.gz
portage-a628147b632ad8b33296f5698d30410854cf1d75.tar.bz2
portage-a628147b632ad8b33296f5698d30410854cf1d75.zip
AbstractEbuildProcess: interactive pkg_config
-rw-r--r--pym/_emerge/AbstractEbuildProcess.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/pym/_emerge/AbstractEbuildProcess.py b/pym/_emerge/AbstractEbuildProcess.py
index 6e1491bbe..63368d4af 100644
--- a/pym/_emerge/AbstractEbuildProcess.py
+++ b/pym/_emerge/AbstractEbuildProcess.py
@@ -21,6 +21,7 @@ class AbstractEbuildProcess(SpawnProcess):
__slots__ = ('phase', 'settings',) + \
('_build_dir', '_ipc_daemon', '_exit_command',)
_phases_without_builddir = ('clean', 'cleanrm', 'depend', 'help',)
+ _phases_interactive_whitelist = ('config',)
# Number of milliseconds to allow natural exit of the ebuild
# process after it has called the exit command via IPC. It
@@ -96,6 +97,7 @@ class AbstractEbuildProcess(SpawnProcess):
self.fd_pipes = {}
null_fd = None
if 0 not in self.fd_pipes and \
+ self.phase not in self._phases_interactive_whitelist and \
"interactive" not in self.settings.get("PROPERTIES", "").split():
null_fd = os.open('/dev/null', os.O_RDONLY)
self.fd_pipes[0] = null_fd