Fix the term_width setting for the recent portage change, which is now returning...
authorBrian Dolbec <dolsen@gentoo.org>
Fri, 23 Dec 2011 06:01:45 +0000 (22:01 -0800)
committerBrian 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

index 832d902012cd3b34a7a3bae7a0bef8981d3902ed..3d662d5d5b6de364e686f94beb01ffa2b0ba2102 100644 (file)
@@ -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