summaryrefslogtreecommitdiff
path: root/utils/gen_fast_manifest.py
diff options
context:
space:
mode:
Diffstat (limited to 'utils/gen_fast_manifest.py')
-rwxr-xr-xutils/gen_fast_manifest.py4
1 files changed, 4 insertions, 0 deletions
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: