[Yum-devel] [patch] make RpmSack.what* return a list of POs insted of pkgtups

Florian Festi ffesti at redhat.com
Mon Apr 30 13:00:48 UTC 2007


Jeremy Katz wrote:
> On Mon, 2007-04-30 at 12:24 +0200, Florian Festi wrote:
>> RpmSack.whatProvides and .whatRequires build package objects inside but only 
>> return the pkg tuples. This is really annoying as most places need to 
>> reconstruct these objects later.
> 
> While (at times annoyingly :-) inconsistent, changing this breaks API
> compatibility and thus I'd really rather not do it, at least not at this
> time.
> 
> We could go the (still ugly) route of adding a aspo flag and only do it
> when that's passed; that would allow new callers to get the benefit
> while not breaking older callers.  And if we wanted to keep things
> consistent, we could implement the same flag on the other sacks, just
> with the different default

Could look like the attached patch...
-------------- next part --------------
A non-text attachment was scrubbed...
Name: yum_rpmsack_whatFoo_tuple2po-2.diff
Type: text/x-patch
Size: 9623 bytes
Desc: not available
Url : http://lists.baseurl.org/pipermail/yum-devel/attachments/20070430/b1a09280/attachment.bin 


More information about the Yum-devel mailing list