Re: exclude filename from .gz files

James Antill <[email protected]> Mon, 28 Nov 2011 15:35:01 -0500
Newsgroups gmane.linux.rpm.metadata
Organization Fedora
Message-ID <[email protected]>
On Mon, 2011-11-28 at 11:20 -0500, Dennis Gregorovic wrote:
> When you run createrepo, the original filenames, including full path, of
> the files are stored in the header of the .gz metadata.  There are two
> issues with this.  The first is cosmetic - we're keeping data in those
> files that we don't really need.  For example, this is from F-16:
[...]
> The other issue, however, is a bit more problematic.  The path becomes
> part of the checksum of the gzip file itself.  So, if you gunzip the
> file and re-gzip it, you get a different checksum.
[...]
> Would folks be ok with adding a flag to createrepo/modifyrepo so that
> they don't include the original path in the gzip file (or perhaps making
> that the default)?  I can whip together a patch if that would help.

 I would say don't bother with an option even, just do a patch to never
include it.