On Thu, 2012-01-26 at 04:42 -0500, Zdenek Pavlas wrote: > > Subject: [Yum-devel] [PATCH] Show versions for provides. > > + item = yum.misc.prco_tuple_to_string(sorted(provs)[0]) > > None < 'EQ', so this leaves out the version if: > > Provides: foo > Provides: foo = 2.0
But that's correct, because the first provides is a superset of the second (so the package will match for "foo = 3.0", and showing the second will probably be a bit confusing). I don't know of any packages with the above, but on RHEL-5 the kernel packages has had a similar problem where it has: In [10]: sorted((p for p in x.provides if p[0] == 'kernel')) Out[10]: [('kernel', 'EQ', ('0', '2.6.18', None)), ('kernel', 'EQ', ('0', '2.6.18', '274.el5'))] % repoquery -q --provides kernel | fgrep 'kernel ' kernel = 2.6.18 kernel = 2.6.18-274.17.1.el5 ...and people generally see the second one, and don't realize that the first one means that "Requires: kernel-2.6.18-blah" is provided by it. _______________________________________________ Yum-devel mailing list Yum-devel@lists.baseurl.org http://lists.baseurl.org/mailman/listinfo/yum-devel