[Yum-devel] [patch] SqliteSack.whatProvides/Requires
Florian Festi
ffesti at redhat.com
Wed Apr 25 16:26:49 UTC 2007
Hi!
The attached patch moved most of the whatProvides code into the SqliteSack.
An implementation for MetaSack and a yet unused whatRequires method is also
provided.
Except being the right place (IMHO) it gives a ~10% speed up. whatProvides
returns a list of POs (as most other *Sack methods). I left
DepSover.whatProvides alive and returning a PackageSack to avoid breaking
interfaces.
I'd suggest considering modifing RpmSack.whatProvides to also return a list
of POs insted of a list of NEVRA tuples to have a consistent interface.
Florian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: yum-whatProvides.diff
Type: text/x-patch
Size: 8981 bytes
Desc: not available
Url : http://lists.baseurl.org/pipermail/yum-devel/attachments/20070425/7ebbe828/attachment.bin
More information about the Yum-devel
mailing list