[Yum-devel] [PATCH] Show versions for provides.

James Antill james at and.org
Wed Jan 25 18:04:02 UTC 2012


---
 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,
-- 
1.7.6.4



More information about the Yum-devel mailing list