summaryrefslogtreecommitdiff
path: root/utils/gen_fast_manifest.py
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2017-11-19 20:19:48 +0100
committerMichał Górny <mgorny@gentoo.org>2017-11-19 20:32:18 +0100
commit8eebdd8ee5a7d0e5eab398908c51c3c2a312bcbe (patch)
treef468915a1507cd67d55afc4f39f82fc77b76353c /utils/gen_fast_manifest.py
parent7a76c9f734790f1ab0985bc7a2539b8e18d78174 (diff)
downloadgemato-8eebdd8ee5a7d0e5eab398908c51c3c2a312bcbe.tar.gz
gen_fast*: Make metadata/{glsa,news} valid top-level Manifests
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: