From: Thomas Viehmann Date: Thu, 19 Jun 2008 18:20:02 +0000 (+0000) Subject: catch UnknownFormatError in process-unchecked/check_dsc X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=895a32ee49e0f870daa087c1784f843038450847;p=dak catch UnknownFormatError in process-unchecked/check_dsc --- diff --git a/ChangeLog b/ChangeLog index a779c6ff..dfc63f89 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-06-19 Thomas Viehmann + + * dak/process_unchecked.py (check_dsc): Catch UnknownFormatError + and reject + 2008-06-15 Joerg Jaspert * config/debian/cron.weekly: Work around a git bug until git is diff --git a/dak/process_unchecked.py b/dak/process_unchecked.py index 9b8d4de5..0e2d6166 100755 --- a/dak/process_unchecked.py +++ b/dak/process_unchecked.py @@ -700,6 +700,9 @@ def check_dsc(): except NoFilesFieldError: reject("%s: no Files: field." % (dsc_filename)) return 0 + except UnknownFormatError, format: + reject("%s: unknown format '%s'." % (filename, format)) + return 0 except ParseChangesError, line: reject("%s: parse error, can't grok: %s." % (dsc_filename, line)) return 0