Re: test if repomd up to date?

Erich Focht <[email protected]>
Newsgroups gmane.linux.rpm.metadata
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.