[Yum-devel] [patch] PackageSackBase.getProvides/getRequires
Florian Festi
ffesti at redhat.com
Thu Jun 14 09:17:39 UTC 2007
Hi!
I reworked my new search code a bit and factored it out into single patches.
I decided to change the interface to:
def getProvides(self, name, flags=None, version=None):
def getRequires(self, name, flags=None, version=None):
to avoid collisions with other methods and to be able to postpone further
discussions about deprecation and streamlining of the API to next year.
Although the names are not that nice that's probably the best way to go.
yum-prco_helpers.diff was already posted to the list I just add it here for
completeness as it is needed by the other patches. The other patches just
add the both methods to PackageSackBase and its sub classes.
FYI: I moved the searches on the transaction to the
transactioninfo.TransactionData class where they look much better now. There
also are .getNewProvides/Requires(), .getOldProvides/Requires() methods with
are useful at some places in the depsolver. LocalInstall pkgs will also be
handled within the TransactionData which will keep them in a PackageSack for
faster searching (will need "Dynamic Indexes" patch).
Patch will follow as soon as I have divided the changes to transactioninfo
into 3 different patches. (getProvides, removedmembers, .depends_on->sets)
Comments are welcome.
Florian Festi
-------------- next part --------------
A non-text attachment was scrubbed...
Name: yum-prco_helpers.diff
Type: text/x-patch
Size: 8273 bytes
Desc: not available
Url : http://lists.baseurl.org/pipermail/yum-devel/attachments/20070614/ff20da88/attachment.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: yum-rpmsack_getprovides.diff
Type: text/x-patch
Size: 3197 bytes
Desc: not available
Url : http://lists.baseurl.org/pipermail/yum-devel/attachments/20070614/ff20da88/attachment-0001.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: yum-sqlitesack_getprovides.diff
Type: text/x-patch
Size: 3846 bytes
Desc: not available
Url : http://lists.baseurl.org/pipermail/yum-devel/attachments/20070614/ff20da88/attachment-0002.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: yum-packagesack_getprovides.diff
Type: text/x-patch
Size: 2777 bytes
Desc: not available
Url : http://lists.baseurl.org/pipermail/yum-devel/attachments/20070614/ff20da88/attachment-0003.bin
More information about the Yum-devel
mailing list