[Yum-devel] [PATCH 1/3] Show from_repo in matchcallback. Only print "Matched from" is there is more.

tim.lauridsen at gmail.com tim.lauridsen at gmail.com
Tue Jun 14 10:34:54 UTC 2011


On Mon, Jun 13, 2011 at 9:55 PM, James Antill <james at and.org> wrote:

> ---
>  output.py |    7 +++++--
>  1 files changed, 5 insertions(+), 2 deletions(-)
>
> diff --git a/output.py b/output.py
> index 398dafa..3840f82 100755
> --- a/output.py
> +++ b/output.py
> @@ -897,13 +897,16 @@ class YumOutput:
>         if not verbose:
>             return
>
> -        print _("Repo        : %s") % po.repoid
> -        print _('Matched from:')
> +        print _("Repo        : %s") % po.ui_from_repo
> +        done = False
>         for item in yum.misc.unique(values):
>             item = to_utf8(item)
>             if to_utf8(po.name) == item or to_utf8(po.summary) == item:
>                 continue # Skip double name/summary printing
>
> +            if not done:
> +                print _('Matched from:')
> +                done = True
>             can_overflow = True
>             if False: pass
>             elif to_utf8(po.description) == item:
> --
> 1.7.5.2
>
> _______________________________________________
> 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/20110614/a724c3cb/attachment-0001.html>


More information about the Yum-devel mailing list