summaryrefslogtreecommitdiff
path: root/pym
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-07-26 21:24:43 +0000
committerZac Medico <zmedico@gentoo.org>2007-07-26 21:24:43 +0000
commitfc9e005a7f3a3f1415c81c6f9614ccfcf8df65e4 (patch)
tree7707fed11e5fef79505412aae9446acff2a7cd9e /pym
parentuse ${MAKE:-make} rather than make in einstall() (diff)
downloadportage-idfetch-fc9e005a7f3a3f1415c81c6f9614ccfcf8df65e4.tar.gz
portage-idfetch-fc9e005a7f3a3f1415c81c6f9614ccfcf8df65e4.tar.bz2
portage-idfetch-fc9e005a7f3a3f1415c81c6f9614ccfcf8df65e4.zip
When setting the size of the pty for logging, check if stdout isatty rather than stdin.
svn path=/main/trunk/; revision=7400
Diffstat (limited to 'pym')
-rw-r--r--pym/portage/__init__.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py
index ef437a3d..fff40107 100644
--- a/pym/portage/__init__.py
+++ b/pym/portage/__init__.py
@@ -2392,8 +2392,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)