[Yum-devel] yum exclude seems broken in 3.2.10 under certain conditions

James Antill james.antill at redhat.com
Sun Feb 10 20:32:14 UTC 2008


On Sun, 2008-02-10 at 14:24 +0100, Hans-Peter Jansen wrote:

> Yep, that's the culprit. For whatever reason, SUSE creates symlinks for 
> every updated package out there (since ages). I'm able to exclude these 
> symlinks from my local repos, but this will probably fail with the official 
> repos (and it's a bit unintuitive, that excludes may fail under these 
> conditions..). Generally ignoring symlinks in createrepo (by option) isn't 
> that brilliant either, since I do use them also myself in a few places 
> (with low propability to interfere with exclude items, though).

 Do you have an example SuSE repo which has this problem in it? All the
ones I looked at only had a single pkg per. "nerva" in the metadata,
although they might well have more packages/symlinks that aren't in the
metadata. Having the extra symlinks is fine, having the same nevra pkgs
in the metadata multiple times is bad.

> The whole issue is complicated by SUSE's delta.rpm packages, which, if 
> forgotten to exclude them on the createrepo run, adds another source of 
> similar packages, and further contribute to the problem (as happened here 
> with my tests.. :-(). 
> 
> >  If so the short term solution would be to just delete one of them. If
> > there's another reason they are being listed twice, we'll probably have
> > a fix you can try soon.
> 
> Good to know. Since the repos are created in such a way since a long time, I 
> think, it's better to fix this problem in yum itself, but as it stands, 
> your right, createrepo should better have handled this case properly.

 Feel free to try the attached patch[1] based on HEAD, it solves the
problem for me. I'm going to wait until I can speak to Seth before I
commit it though, as there are a number of ways to "fix" this and he
might prefer a different approach.


[1] Also available from:

 http://people.redhat.com/jantill/yum/yum-exclude-all-pkgs.patch

-- 
James Antill <james.antill at redhat.com>
Red Hat
-------------- next part --------------
A non-text attachment was scrubbed...
Name: yum-exclude-all-pkgs.patch
Type: text/x-patch
Size: 2092 bytes
Desc: not available
Url : http://lists.baseurl.org/pipermail/yum-devel/attachments/20080210/7c754ff1/attachment.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.baseurl.org/pipermail/yum-devel/attachments/20080210/7c754ff1/attachment.pgp 


More information about the Yum-devel mailing list