Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:11.4
createrepo
createrepo-0.9.8-generate-gzip-headers.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File createrepo-0.9.8-generate-gzip-headers.patch of Package createrepo
--- a/createrepo/utils.py +++ b/createrepo/utils.py @@ -35,21 +35,14 @@ def _(args): class GzipFile(gzip.GzipFile): def _write_gzip_header(self): + # Generate a header that is easily reproduced with gzip -9 -n on + # an unix-like system self.fileobj.write('\037\213') # magic header self.fileobj.write('\010') # compression method - if hasattr(self, 'name'): - fname = self.name[:-3] - else: - fname = self.filename[:-3] - flags = 0 - if fname: - flags = FNAME - self.fileobj.write(chr(flags)) - write32u(self.fileobj, long(0)) - self.fileobj.write('\002') - self.fileobj.write('\377') - if fname: - self.fileobj.write(fname + '\000') + self.fileobj.write('\000') # flags + write32u(self.fileobj, long(0)) # timestamp + self.fileobj.write('\002') # max compression + self.fileobj.write('\003') # UNIX class LzmaFile: def __init__(self, filename, mode, compresslevel=None):
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor