[Yum-devel] Re: check for providers obsoleting each other

seth vidal skvidal at fedoraproject.org
Fri Feb 22 05:26:57 UTC 2008


On Thu, 2008-02-21 at 17:02 -0500, seth vidal wrote:
> This bug hit bugzilla today:
> https://bugzilla.redhat.com/show_bug.cgi?id=430413
> 
> the issue is that faad2 and faad2-libs both provide the same item and
> since all else is equal yum was choosing faad2 b/c the name is shorter.
> 
> So this patch
> 
> http://skvidal.fedorapeople.org/patches/yum-rule-out-provides-by-being-obsoletes.patch
> 
> ads an obsolete check for 'best package' If a package in the list of
> possible providers obsoletes another one of the packages in the list
> then the obsoleted package can't 'win' the bestpackage check.
> 
> I think I've implemented it in the right place for the case but this
> code gets pretty stringy in places and I wanted to make sure I hadn't
> missed something else.
> 
> Can someone check behind me?

Usefully someone did check behind me and demonstrated a case where the
obsoletes would slip up b/c it was only going through the newest list
once.

The following patch should handle both of those cases. Notice the note
about mutual obsoletes and doom. If I'm missing other things hit me in
the head with heavy things.

http://skvidal.fedorapeople.org/patches/yum-better-rule-out-provides-by-being-obsoletes.patch

thanks,
-sv





More information about the Yum-devel mailing list