summaryrefslogtreecommitdiffstats
path: root/pym/portage.py
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-07-26 21:26:23 +0000
committerZac Medico <zmedico@gentoo.org>2007-07-26 21:26:23 +0000
commitdd51b5cf3d0b3ec604092ca3a3851b406e8f22ce (patch)
tree58892ff9f4e29c264863df91645e04bd5215c380 /pym/portage.py
parenta536b9b733ab4714193c78dfc70369fe28b476f7 (diff)
downloadportage-dd51b5cf3d0b3ec604092ca3a3851b406e8f22ce.tar.gz
portage-dd51b5cf3d0b3ec604092ca3a3851b406e8f22ce.tar.bz2
portage-dd51b5cf3d0b3ec604092ca3a3851b406e8f22ce.zip
When setting the size of the pty for logging, check if stdout isatty rather than stdin. (trunk r7400)
svn path=/main/branches/2.1.2/; revision=7401
Diffstat (limited to 'pym/portage.py')
-rw-r--r--pym/portage.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/pym/portage.py b/pym/portage.py
index 2c2e83278..e03643292 100644
--- a/pym/portage.py
+++ b/pym/portage.py
@@ -2343,8 +2343,7 @@ def spawn(mystring, mysettings, debug=0, free=0, droppriv=0, sesandbox=0, fakero
master_fd, slave_fd = openpty()
fd_pipes.setdefault(0, sys.stdin.fileno())
fd_pipes_orig = fd_pipes.copy()
- stdin_fd = fd_pipes[0]
- if os.isatty(stdin_fd):
+ if os.isatty(fd_pipes_orig[1]):
from output import get_term_size, set_term_size
rows, columns = get_term_size()
set_term_size(rows, columns, slave_fd)