commit 22ec2a3634b8eee640a335e8d9f28754509e7024
parent 94cbcd4db7b57cd0ce3d6ceab7b9c804ee2489c1
Author: parazyd <parazyd@dyne.org>
Date: Sun, 22 Oct 2017 12:59:09 +0200
add missing Release headers that don't force backports
also make the Release header splitter a separate variable
- this can be useful when debian decides to drop md5
Diffstat:
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/lib/config.def.py b/lib/config.def.py
@@ -186,7 +186,9 @@ release_keys = [
'Valid-Until',
'Architectures',
'Components',
- 'Description'
+ 'Description',
+ 'NotAutomatic',
+ 'ButAutomaticUpgrades',
]
packages_keys = [
diff --git a/lib/parse.py b/lib/parse.py
@@ -56,11 +56,13 @@ def parse_release_head(reltext):
contents = reltext.split('\n')
+ splitter = 'MD5Sum:'
+
md5sum = False
for line in contents:
if md5sum is True:
break
- elif line.startswith('MD5Sum:'):
+ elif line.startswith(splitter):
md5sum = True
else:
k = line.split(': ')[0]