projects
/
gentoolkit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
10aaed2
)
Fix the term_width setting for the recent portage change, which is now returning...
author
Brian Dolbec
<dolsen@gentoo.org>
Fri, 23 Dec 2011 06:01:45 +0000
(22:01 -0800)
committer
Brian Dolbec
<dolsen@gentoo.org>
Fri, 23 Dec 2011 06:03:21 +0000
(22:03 -0800)
This should work for all portage versions.
pym/gentoolkit/base.py
patch
|
blob
|
history
diff --git
a/pym/gentoolkit/base.py
b/pym/gentoolkit/base.py
index 832d902012cd3b34a7a3bae7a0bef8981d3902ed..3d662d5d5b6de364e686f94beb01ffa2b0ba2102 100644
(file)
--- a/
pym/gentoolkit/base.py
+++ b/
pym/gentoolkit/base.py
@@
-40,7
+40,7
@@
def initialize_configuration():
# Get terminal size
term_width = pp.output.get_term_size()[1]
- if term_width
== -
1:
+ if term_width
<
1:
# get_term_size() failed. Set a sane default width:
term_width = 80
# Terminal size, minus a 1-char margin for text wrapping