[Yum-devel] [PATCH 1/2] Prefer to overflow the last column, as then grep still works

Tim Lauridsen tim.lauridsen at googlemail.com
Fri Mar 5 06:11:03 UTC 2010


On Thu, Mar 4, 2010 at 8:28 PM, James Antill <james at and.org> wrote:

> ---
>  output.py |    5 ++++-
>  1 files changed, 4 insertions(+), 1 deletions(-)
>
> diff --git a/output.py b/output.py
> index 110aa0b..27fc81c 100755
> --- a/output.py
> +++ b/output.py
> @@ -392,7 +392,10 @@ class YumOutput:
>                                                          total_width)
>                 if not thelps:
>                     continue
> -                if thelps < helps:
> +                #  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)):
>                     continue
>                 helps = thelps
>                 val   = d
> --
> 1.6.6
>
> _______________________________________________
> Yum-devel mailing list
> Yum-devel at lists.baseurl.org
> http://lists.baseurl.org/mailman/listinfo/yum-devel
>

ACK
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.baseurl.org/pipermail/yum-devel/attachments/20100305/c37ef102/attachment.htm>


More information about the Yum-devel mailing list