[tools] Re: mrepo not creating metadata for old yum

Campbell, Todd Todd_Campbell at PremierInc.com
Thu Aug 21 13:36:05 CEST 2008


I may be a little behind on this since I read in digest, but in order to
have mrepo generate the old yum style metadata, you need to specify it
for that distribution in your mrepo.conf (i.e.):

[4AS]
name = blah
release = 4
arch = blah
iso = /blah/blah
metadata = yum repomd

Hope this helps.

Todd

-----Original Message-----

Date: Wed, 20 Aug 2008 14:43:16 +0300
From: urgrue <urgrue at bulbous.org>
Subject: Re: [tools] mrepo not creating metadata for old yum
To: Jan-Frode Myklebust <janfrode at tanso.net>
Cc: tools at lists.rpmforge.net
Message-ID: <48AC0354.5000807 at bulbous.org>
Content-Type: text/plain; charset=ISO-8859-1

Jan-Frode Myklebust wrote:
> On Wed, Aug 20, 2008 at 11:37:24AM +0300, urgrue wrote:
>> I do have yum-arch installed and I now also added yumarchcmd =
>> /usr/bin/yum-arch to mrepo.conf, but it still doesnt work. Still no
>> headers dir.
>> mrepo -ugvvvv output contains:
>> Setting option yumarchcmd in section [main] to: /usr/bin/yum-arch
>> And no errors of any kind.
> 
> I was struggeling a bit with the new yum-arch too. I think it was
> ignoring symnlinks by default, and that I had to modify /usr/bin/mrepo
> to use the "-l" option when running yum-arch. I think the below is
what
> I did:
> 
> $ diff -u /tmp/mrepo /usr/bin/mrepo
> --- /tmp/mrepo  2008-08-20 12:57:28.000000000 +0200
> +++ /usr/bin/mrepo      2008-06-03 10:28:20.000000000 +0200
> @@ -731,7 +731,7 @@
>                         if os.path.isdir(os.path.join(self.wwwdir,
'.oldheaders')):
>                                 remove(os.path.join(self.wwwdir,
'.oldheaders'))
>                         info(2, '%s: Create (old-style) yum repository
for %s' % (self.dist.nick, self.name))
> -                       ret = run('%s %s -c %s' % (cf.cmd['yumarch'],
opts, self.wwwdir))
> +                       ret = run('%s %s -c -l %s' %
(cf.cmd['yumarch'], opts, self.wwwdir))
>                         if ret:
>                                 raise(mrepoGenerateException('%s
failed with return code: %s' % (cf.cmd['yumarch'], ret)))
>  


Thanks for the tip, unfortunately my mrepo already has the -l. I'm using
the latest svn version and it has that fixed apparently.


-----------------------------------------
***Note:The information contained in this message may be privileged
and confidential and protected from disclosure. If the reader of
this message is not the intended recipient, or an employee or agent
responsible for delivering this message to the intended recipient,
you are hereby notified that any dissemination, distribution or
copying of this communication is strictly prohibited.  If you have
received this communication in error, please notify the Sender
immediately by replying to the message and deleting it from your
computer.  Thank you.  Premier Inc.


More information about the tools mailing list