summaryrefslogtreecommitdiff
path: root/utils/gen_fast_manifest.py
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2017-11-25 00:19:18 +0100
committerMichał Górny <mgorny@gentoo.org>2017-11-25 00:19:18 +0100
commit5f7660e6c3639aa77c9414082589976a3d2a6716 (patch)
treebe57b83193804e5b91c9346c660342da3b0de570 /utils/gen_fast_manifest.py
parent89cfd10d1a88d95e6f28270f60980b459d06b71a (diff)
downloadgemato-5f7660e6c3639aa77c9414082589976a3d2a6716.tar.gz
compression: Zero out mtime in gzip files for deterministic results
Diffstat (limited to 'utils/gen_fast_manifest.py')
-rwxr-xr-xutils/gen_fast_manifest.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/gen_fast_manifest.py b/utils/gen_fast_manifest.py
index ccba791..049761f 100755
--- a/utils/gen_fast_manifest.py
+++ b/utils/gen_fast_manifest.py
@@ -107,7 +107,7 @@ 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') as f:
+ with gzip.GzipFile(os.path.join(top_dir, 'Manifest.gz'), 'wb', mtime=0) as f:
f.write(manifest_data)
if had_manifest:
os.unlink(os.path.join(top_dir, 'Manifest'))