diff options
author | Zac Medico <zmedico@gentoo.org> | 2007-07-26 21:26:23 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2007-07-26 21:26:23 +0000 |
commit | dd51b5cf3d0b3ec604092ca3a3851b406e8f22ce (patch) | |
tree | 58892ff9f4e29c264863df91645e04bd5215c380 /pym | |
parent | a536b9b733ab4714193c78dfc70369fe28b476f7 (diff) | |
download | portage-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')
-rw-r--r-- | pym/portage.py | 3 |
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) |