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

Jeremy Katz katzj at redhat.com
Mon Apr 30 12:40:05 UTC 2007


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

Jeremy




More information about the Yum-devel mailing list