[Yum] Re: Recreating headers yields different files

Axel Thimm Axel.Thimm at physik.fu-berlin.de
Mon Apr 28 15:32:46 UTC 2003


On Mon, Apr 28, 2003 at 11:08:00AM -0400, seth vidal wrote:
> On Mon, 2003-04-28 at 03:49, Axel Thimm wrote:
> > I observed that recreating the headers of the same set of rpms is creating
> > *.hdr files that are different in content. Does some date enter the *.hdr
> > files?
> > 
> > Would it be possible to have the same *.hdr files produced (maybe even
> > timestamp them with the time of the rpm itself)? The reason I am asking is
> > that it may save some rsync time for repository mirroring (e.g. when I build a
> > new rpm and recreate the *.hdr files I have to rsync all *.hdr to the master
> > repo) and also improve caching (yummers with a cache don't need to reget all
> > *.hdr files because I added only one new).
> 
> so I found out a bit more on this after playing a bit.
> 
> it's not the rpm functions that are causing the variation - its gzip.
> 
> gzip even acts like this from the command line.
> 
> I'll see what else I can find out - but it looks like this may be
> unavoidable.

I think gzip includes the modification time of the included file. If the
modification time of the created hdr files were set to that of the rpm itself,
gzip would always yield the same result, and it would also make
rsyncing/caching the hdr files even simpler! :)
-- 
Axel.Thimm at physik.fu-berlin.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.baseurl.org/pipermail/yum/attachments/20030428/5a09f3ec/attachment-0001.pgp 


More information about the Yum mailing list