[Yum-devel] [PATCH/RFC] Follow arch a bit better with obsoletes

Jeremy Katz katzj at redhat.com
Tue Oct 9 21:07:51 UTC 2007


Currently on multiarch systems, you can end up getting a new arch of a
package pulled in if it's done via an obsolete rather than an update
(rh#301661).  The attached patch is a first crack at making the behavior
for obsoletes match that of updates.  Best way to make clearer is
probably an example...

On your x86_64 system, you removed all i386 packages.  Now, there is a
new NetworkManager package which obsoletes dhcdbd.  The repository
contains NetworkManager.i386 and NetworkManager.x86_64.  With the
current code, you end up with both x86_64 and i386 packages installed.
With the attached patch, you'll only get NetworkManager.x86_64.

I've double checked that arch changing works (ie, NetworkManager.i386 is
the only thing in the repo and it obsoletes dhcdbd.x86_64) and I can't
see any reason this would break.

Jeremy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: yum-obs-by-arch.patch
Type: text/x-patch
Size: 1259 bytes
Desc: not available
Url : http://lists.baseurl.org/pipermail/yum-devel/attachments/20071009/f073902b/attachment.bin 


More information about the Yum-devel mailing list