[Yum-devel] [PATCH] This one is much more contraversial ... we prefer to overflow 7 repoids so we don't have to wrap 4 names.
James Antill
james at and.org
Thu Mar 4 19:41:49 UTC 2010
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
More information about the Yum-devel
mailing list