projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a536b9b
)
When setting the size of the pty for logging, check if stdout isatty rather than...
author
Zac Medico
<zmedico@gentoo.org>
Thu, 26 Jul 2007 21:26:23 +0000
(21:26 -0000)
committer
Zac Medico
<zmedico@gentoo.org>
Thu, 26 Jul 2007 21:26:23 +0000
(21:26 -0000)
svn path=/main/branches/2.1.2/; revision=7401
pym/portage.py
patch
|
blob
|
history
diff --git
a/pym/portage.py
b/pym/portage.py
index 2c2e83278b3b4a0b80075f02432ddb67b7d191da..e0364329292f2abad96f8c7243b387c058e0de4b 100644
(file)
--- 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)