Again, best case is that when we fail we'll fail by overflowing just a few large repoids (Eg. local installs or rpmfusion*) ... thus. grep still works, for those who refuse to use better commands ;) Possible worst case is generating much more overflows than we would otherwise. --- output.py | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/output.py b/output.py index b4513d1..0c4643a 100755 --- a/output.py +++ b/output.py @@ -395,7 +395,10 @@ class YumOutput: # We prefer to overflow: the last column, and then earlier # columns. This is so that in the best case (just overflow the # last) ... grep still "works", and then we make it prettier. - if thelps < helps or (thelps == helps and d == (cols - 1)): + if d == (cols - 1): + # Wrapping the last column has to hurt twice as many lines + thelps /= 2 + if thelps < helps: continue helps = thelps val = d -- 1.6.6 _______________________________________________ Yum-devel mailing list Yum-devel@lists.baseurl.org http://lists.baseurl.org/mailman/listinfo/yum-devel