[Rpm-metadata] test if repomd up to date?
Erich Focht
efocht at hpce.nec.com
Wed Nov 2 12:09:28 UTC 2005
Hi Christoph,
thanks for the patch. That works on both SUSE and RH!
The time reduction is somewhat less than I expected, but it helps.
Best regards,
Erich
On Wednesday 02 November 2005 11:34, Christoph Thiel wrote:
> On Wed, 2 Nov 2005, Erich Focht wrote:
>
> > thanks for the reply. How am I supposed to use cachedir? My attempts
> > failed:
> >
> > focht/bin> createrepo --cachedir /media/usbdisk/SuSE9.3/repodata/repocache/ /media/usbdisk/SuSE9.3/
> > Traceback (most recent call last):
> > File "/usr/share/createrepo/genpkgmetadata.py", line 485, in ?
> > main(sys.argv[1:])
> > File "/usr/share/createrepo/genpkgmetadata.py", line 417, in main
> > doPkgMetadata(cmds, ts)
> > File "/usr/share/createrepo/genpkgmetadata.py", line 266, in doPkgMetadata
> > mdobj = dumpMetadata.RpmMetaData(ts, file, cmds)
> > File "/usr/share/createrepo/dumpMetadata.py", line 231, in __init__
> > self.pkgid = self.doChecksumCache(fo)
> > File "/usr/share/createrepo/dumpMetadata.py", line 565, in doChecksumCache
> > csumtag = '%s-%s' % (self.hdr['name'] , self.hdr['hdrid'])
> > KeyError: 'unknown header tag'
>
> The "hdrid" header alias isn't available in the rpm (4.1.1) on SUSE Linux
> 9.3. But you could simply patch up your createrepo to use
> "rpm.RPMTAG_SHA1HEADER" instead.
>
> I'v attached the patch we currently apply to our createrepo package on
> SUSE Linux.
>
>
> Regards
> Christoph
More information about the Rpm-metadata
mailing list