[Rpm-metadata] test if repomd up to date?

Erich Focht efocht at hpce.nec.com
Wed Nov 2 10:08:40 UTC 2005


Hi Seth,

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'

Thanks,
Erich


On Monday 31 October 2005 19:51, seth vidal wrote:
> On Mon, 2005-10-31 at 11:50 +0100, Erich Focht wrote:
> > Hi,
> > 
> > is there an easy and cheap test whether the repository metadata is up-to-date?
> > It would be great to have some --check option integrated into createrepo...
> > 
> 
> Not really - closest thing is the cache option in createrepo 0.4.3
> 
> -sv




More information about the Rpm-metadata mailing list