[Yum-devel] [PATCH] Try to make the "info install blah" case more usable atm.

tim.lauridsen at gmail.com tim.lauridsen at gmail.com
Fri Mar 2 12:19:50 UTC 2012


On Mon, Feb 27, 2012 at 9:54 PM, James Antill <james at and.org> wrote:

> ---
>  yumcommands.py |    5 +++++
>  1 files changed, 5 insertions(+), 0 deletions(-)
>
> diff --git a/yumcommands.py b/yumcommands.py
> index cfa6bf7..bb4dde8 100644
> --- a/yumcommands.py
> +++ b/yumcommands.py
> @@ -538,6 +538,11 @@ class InfoCommand(YumCommand):
>         """
>         try:
>             highlight = base.term.MODE['bold']
> +            #  If we are doing: "yum info installed blah" don't do the
> highlight
> +            # because the usability of not accessing the repos. is still
> higher
> +            # than providing colour for a single line. Usable
> updatesd/etc. FTW.
> +            if basecmd == 'info' and extcmds and extcmds[0] ==
> 'installed':
> +                highlight = False
>             ypl = base.returnPkgLists(extcmds,
> installed_available=highlight)
>         except yum.Errors.YumBaseError, e:
>             return 1, [str(e)]
> --
> 1.7.6.5
>
> _______________________________________________
> 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/20120302/b6f9e5b3/attachment.html>


More information about the Yum-devel mailing list