[Yum-devel] [PATCH] Fix arch behavior for versioned obsoletes

Florian Festi ffesti at redhat.com
Mon Nov 12 17:05:09 UTC 2007


Florian Festi wrote:
> Hi!
> 
> Attached patch completes the behavior change Jeremy introduced with 
> 5badc2b67b9885d2993b6f77423bc632b8595b01 - "when an obsolete is 
> available for a package, only install most matching arch rather than all 
> available arches (rh#301661)". Currently arch is ignored for versioned 
> obsoletes as the now added lines are missing in that code path. Please 
> commit!
> 
> There is a test case in my "gold" branch but the patch depends on other 
> patch sets in that branch - feel free to pull them in.
> 
> Special thanks to Zdenek Kabelac for reporting that problem and Thomas 
> Wörner for hunting it down.

A probably better way to fix this is to avoid different code path at all. 
Attached patch removes the code duplication in doObsoletes() and fixes the 
versioned obsoletes problem en passant.

Florian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Do-arch-checks-for-versioned-obsoletes-too.patch
Type: text/x-patch
Size: 3317 bytes
Desc: not available
Url : http://lists.baseurl.org/pipermail/yum-devel/attachments/20071112/b411a916/attachment.bin 


More information about the Yum-devel mailing list