From: Thomas Viehmann Date: Sat, 3 May 2008 07:04:31 +0000 (+0000) Subject: reject on syntax error in Checksum-* filelist X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=edf0333a6861354eb8c0f6b382a473c35728940d;p=dak.git reject on syntax error in Checksum-* filelist --- diff --git a/ChangeLog b/ChangeLog index 12ad5189..fc6e9f88 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-05-03 Thomas Viehmann + + * dak/process_unchecked.py (check_hashes): Reject on error while + parsing Checksums-*. + 2008-05-02 Joerg Jaspert * config/debian/pseudo-packages*: Removed listarchives, closes #468667 diff --git a/dak/process_unchecked.py b/dak/process_unchecked.py index 8bfc25ce..abf53fd1 100644 --- a/dak/process_unchecked.py +++ b/dak/process_unchecked.py @@ -947,6 +947,8 @@ def check_hashes (): check_hash(".changes %s" % (h), fs, h, f, files) except daklib.utils.no_files_exc: reject("No Checksums-%s: field in .changes" % (h)) + except daklib.utils.changes_parse_error_exc, line: + reject("parse error for Checksums-%s in .changes, can't grok: %s." % (h, line)) if "source" not in changes["architecture"]: continue @@ -955,6 +957,8 @@ def check_hashes (): check_hash(".dsc %s" % (h), fs, h, f, dsc_files) except daklib.utils.no_files_exc: reject("No Checksums-%s: field in .dsc" % (h)) + except daklib.utils.changes_parse_error_exc, line: + reject("parse error for Checksums-%s in .dsc, can't grok: %s." % (h, line)) ################################################################################