Re: mergerepo weird behavior

James Antill <[email protected]> Tue, 09 Aug 2011 11:27:09 -0400
Newsgroups gmane.linux.rpm.metadata
Organization Fedora
Message-ID <[email protected]>
On Tue, 2011-08-09 at 10:56 -0400, Jon Wallace wrote:
> Hello,
> 
> I'm seeing some weird mergerepo behavior I can't make sense of.  I have 
> three repositories, PRODA, PRODB, PRODC, and each has a single package 
> within it.  I'm trying to merge various combinations of these together.  
> The example below tries to merge PRODB and PRODC into PROD-BC.
> 
> 
> #mergerepo --repo=file:///<path-to-repo>/PRODB 
> --repo=file:///<path-to-repo>/PRODC -o PROD-BC

 What versions of createrepo and yum? If it's RHEL-6, then you need this
createrepo patch:

commit 4047f09e0f1b41427d6cf943489e2a3992320365
Author: James Antill <[email protected]>
Date:   Fri Jan 21 11:14:34 2011 -0500

    Override timestamp check on repos. for mergerepo (like repodiff).


 We fixed one "gotcha" recently with timestamp_check, in yum, but that
was when the baseurl didn't work IIRC.

 You can work around it by doing:

rm -rf /var/cache/yum/.../repo?

...as the repos are created as "repo1", "repo2" etc.