[Rpm-metadata] createrepo patch to optionally use /usr/bin/file to detect rpms

Jay Soffian jay-yum at soffian.org
Mon Sep 11 19:50:36 UTC 2006


On Sep 11, 2006, at 8:30 AM, Florian La Roche wrote:

> On Mon, Sep 11, 2006 at 08:06:50AM -0400, Jay Soffian wrote:
>
>> I put together a quick patch that allows genpkgmetadata to optionally
>> call out to /usr/bin/file to examine any files it encounters that
>> don't have the normal .rpm extension (files which do have .rpm are
>> assumed to be rpms and are not passed to /usr/bin/file).
>
> Maybe adding an option to read the filelist from a new file or
> stdin would also be a good idea? Then you can script whatever you
> want to outside of createrepo.

I'm not sure if you're suggesting this in addition to, or in lieu of  
the patch I submitted. I like the idea, but it's a bit more ripping  
apart of the code. I'll have a look though.

BTW, does anyone know if yum 2.6 properly supports createrepos' -u  
<base_url> option? I wasn't able to get it to work. The base url  
appears in the XML files that createrepo produces but appears to be  
ignored by yum. (2.6.1).

j.



More information about the Rpm-metadata mailing list