From 5f7660e6c3639aa77c9414082589976a3d2a6716 Mon Sep 17 00:00:00 2001 From: Michał Górny Date: Sat, 25 Nov 2017 00:19:18 +0100 Subject: compression: Zero out mtime in gzip files for deterministic results --- utils/gen_fast_manifest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'utils/gen_fast_manifest.py') 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')) -- cgit v1.2.3