Unverified Commit 32b4dd28 authored by Paul Wise's avatar Paul Wise

Check Release files for bad Label fields

Found-in: http://deb.devuan.org/devuan/dists/testing/Release
parent b2bbcd1d
......@@ -76,6 +76,9 @@ release_headers = [
'SHA512',
'Signed-By',
]
bad_labels = [
'None',
]
default_desc = [
'Generated by aptly',
'My Happy Fun Packages',
......@@ -160,6 +163,8 @@ for item in acquire.items:
logging.warning('release %s: Release file missing Label', item.desc_uri)
elif release['Label'] == 'Debian':
logging.warning('release %s: Release file claims Label is Debian', item.desc_uri)
elif release['Label'] in bad_labels':
logging.warning('release %s: Release file uses bad Label: %s', item.desc_uri, release['Label'])
if 'Description' not in release:
logging.warning('release %s: Release file missing Description', item.desc_uri)
elif release['Description'] in default_desc:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment