From 8eebdd8ee5a7d0e5eab398908c51c3c2a312bcbe Mon Sep 17 00:00:00 2001 From: Michał Górny Date: Sun, 19 Nov 2017 20:19:48 +0100 Subject: gen_fast*: Make metadata/{glsa,news} valid top-level Manifests --- utils/gen_fast_manifest.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'utils/gen_fast_manifest.py') diff --git a/utils/gen_fast_manifest.py b/utils/gen_fast_manifest.py index f4e4bbe..320b682 100755 --- a/utils/gen_fast_manifest.py +++ b/utils/gen_fast_manifest.py @@ -102,6 +102,10 @@ def gen_manifest(top_dir): compat_mode = generate_manifest_entries(manifest_entries, top_dir) manifest_entries.sort() + # do not compress files which we want valid top-level Manifests + if top_dir.endswith('metadata/glsa') or top_dir.endswith('metadata/news'): + compat_mode = True + 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: -- cgit v1.2.3