(optional: also compress at level 9)
Omitting the timestamp makes it possible to reconstruct an exact copy of the .gz
file given only the uncompressed contents. The approx caching proxy relies on this
to apply pdiffs and generate compressed index files that correctly match their checksums.
Signed-off-by: Eric Cooper <ecc@cmu.edu>
'''
self.file.close()
if self.gzip:
- check_call('gzip --rsyncable <%s.new >%s.gz.new' % (self.path, self.path),
+ check_call('gzip -9cn --rsyncable <%s.new >%s.gz.new' % (self.path, self.path),
shell = True)
self.rename('%s.gz' % self.path)
if self.bzip2: