diff options
author | Michał Górny <mgorny@gentoo.org> | 2017-11-25 00:19:18 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2017-11-25 00:19:18 +0100 |
commit | 5f7660e6c3639aa77c9414082589976a3d2a6716 (patch) | |
tree | be57b83193804e5b91c9346c660342da3b0de570 /utils/gen_fast_manifest.py | |
parent | 89cfd10d1a88d95e6f28270f60980b459d06b71a (diff) | |
download | gemato-5f7660e6c3639aa77c9414082589976a3d2a6716.tar.gz |
compression: Zero out mtime in gzip files for deterministic results
Diffstat (limited to 'utils/gen_fast_manifest.py')
-rwxr-xr-x | utils/gen_fast_manifest.py | 2 |
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')) |