summaryrefslogtreecommitdiff
path: root/utils/gen_fast_manifest.py
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2017-11-25 11:44:11 +0100
committerMichał Górny <mgorny@gentoo.org>2017-11-25 11:44:11 +0100
commit279658d0e729a1a5781205069ac5d25f29af959d (patch)
tree9d5910fc3dd91e2f845495f7cf9d2f609859fb69 /utils/gen_fast_manifest.py
parentb47d4686b3274a52abd8c5251a5756e7693a62f5 (diff)
downloadgemato-279658d0e729a1a5781205069ac5d25f29af959d.tar.gz
compression: Do not store filename in gzip files
It has no value for us and just wastes space.
Diffstat (limited to 'utils/gen_fast_manifest.py')
-rwxr-xr-xutils/gen_fast_manifest.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/utils/gen_fast_manifest.py b/utils/gen_fast_manifest.py
index 9d58e46..8e4b244 100755
--- a/utils/gen_fast_manifest.py
+++ b/utils/gen_fast_manifest.py
@@ -103,7 +103,8 @@ def gen_manifest(top_dir):
manifest_data = b'\n'.join(manifest_entries) + b'\n'
if len(manifest_data) > 4096 and not compat_mode:
- with gzip.GzipFile(os.path.join(top_dir, 'Manifest.gz'), 'wb', mtime=0) as f:
+ with gzip.GzipFile(os.path.join(top_dir, 'Manifest.gz'), 'wb',
+ filename='', mtime=0) as f:
f.write(manifest_data)
if had_manifest:
os.unlink(os.path.join(top_dir, 'Manifest'))