summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Dolbec <dolsen@gentoo.org>2011-12-22 22:01:45 -0800
committerBrian Dolbec <dolsen@gentoo.org>2011-12-22 22:03:21 -0800
commit96236b49a1da4bd32ac64ba97ab828e0a7b5e9e8 (patch)
tree25b63ab9095fe552fea05b38392fe05e5eaac20d
parent10aaed2b07c11065418d0e9e2c7aa52ae0837300 (diff)
downloadgentoolkit-96236b49a1da4bd32ac64ba97ab828e0a7b5e9e8.tar.gz
Fix the term_width setting for the recent portage change, which is now returning 0 instead of -1.
This should work for all portage versions.
-rw-r--r--pym/gentoolkit/base.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/gentoolkit/base.py b/pym/gentoolkit/base.py
index 832d902..3d662d5 100644
--- 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