From: Thomas Viehmann Date: Thu, 19 Jun 2008 19:05:54 +0000 (+0000) Subject: catch more UnknownFormatError X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ee9f0e5fdb7992781906e3f6560c2b51adcc32ad;p=dak catch more UnknownFormatError --- diff --git a/ChangeLog b/ChangeLog index dfc63f89..62e73f0c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,7 +1,7 @@ 2008-06-19 Thomas Viehmann - * dak/process_unchecked.py (check_dsc): Catch UnknownFormatError - and reject + * dak/process_unchecked.py (check_dsc,check_hashes): Catch + UnknownFormatError and reject 2008-06-15 Joerg Jaspert diff --git a/dak/process_unchecked.py b/dak/process_unchecked.py index 9bd8197e..f2efe8c0 100755 --- a/dak/process_unchecked.py +++ b/dak/process_unchecked.py @@ -951,6 +951,8 @@ def check_hashes (): check_hash(".changes %s" % (h), fs, h, f, files) except NoFilesFieldError: reject("No Checksums-%s: field in .changes" % (h)) + except UnknownFormatError, format: + reject("%s: unknown format of .changes" % (format)) except ParseChangesError, line: reject("parse error for Checksums-%s in .changes, can't grok: %s." % (h, line)) @@ -959,6 +961,8 @@ def check_hashes (): try: fs = utils.build_file_list(dsc, 1, "checksums-%s" % h, h) check_hash(".dsc %s" % (h), fs, h, f, dsc_files) + except UnknownFormatError, format: + reject("%s: unknown format of .dsc" % (format)) except NoFilesFieldError: reject("No Checksums-%s: field in .dsc" % (h)) except ParseChangesError, line: