[Yum-devel] [PATCH] Show versions for provides.
Ales Kozumplik
akozumpl at redhat.com
Thu Jan 26 07:50:48 UTC 2012
On 01/25/2012 07:04 PM, James Antill wrote:
> ---
> output.py | 10 +++++++++-
> 1 files changed, 9 insertions(+), 1 deletions(-)
>
> diff --git a/output.py b/output.py
> index f21b790..37c14cf 100755
> --- a/output.py
> +++ b/output.py
> @@ -1288,7 +1288,15 @@ class YumOutput:
> item = self._enc(item)
> can_overflow = False
> else:
> - key = _("Other : ")
> + provs = []
> + for prov in po.provides:
> + if prov[0] == item:
> + provs.append(prov)
> + if provs:
> + key = _("Provides : ")
> + item = yum.misc.prco_tuple_to_string(sorted(provs)[0])
> + else:
> + key = _("Other : ")
>
> if matchfor:
> item = self._sub_highlight(item, highlight, matchfor,
Looks good.
More information about the Yum-devel
mailing list