aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2010-10-23 13:46:37 -0700
committerZac Medico <zmedico@gentoo.org>2010-10-23 13:46:37 -0700
commita845caec88556253e309db9fe4d9f3c52d13e5e6 (patch)
tree49c6fa942603a68e280dc7e343fb92130d5c2c76 /pym/_emerge/EbuildFetcher.py
parentFix some typos and improve a message in repoman. (diff)
downloadportage-a845caec88556253e309db9fe4d9f3c52d13e5e6.tar.gz
portage-a845caec88556253e309db9fe4d9f3c52d13e5e6.tar.bz2
portage-a845caec88556253e309db9fe4d9f3c52d13e5e6.zip
Copy term size to pty only if foreground.
Diffstat (limited to 'pym/_emerge/EbuildFetcher.py')
-rw-r--r--pym/_emerge/EbuildFetcher.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/pym/_emerge/EbuildFetcher.py b/pym/_emerge/EbuildFetcher.py
index 141dc69ea..96f295f3b 100644
--- a/pym/_emerge/EbuildFetcher.py
+++ b/pym/_emerge/EbuildFetcher.py
@@ -156,7 +156,9 @@ class EbuildFetcher(SpawnProcess):
# When the output only goes to a log file,
# there's no point in creating a pty.
return os.pipe()
- stdout_pipe = fd_pipes.get(1)
+ stdout_pipe = None
+ if not self.background:
+ stdout_pipe = fd_pipes.get(1)
got_pty, master_fd, slave_fd = \
_create_pty_or_pipe(copy_term_size=stdout_pipe)
return (master_fd, slave_fd)