[dak/master] catch more UnknownFormatError
---
ChangeLog | 4 ++--
dak/process_unchecked.py | 4 ++++
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index dfc63f8..62e73f0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,7 +1,7 @@
2008-06-19 Thomas Viehmann <tv@beamnet.de>
- * 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 <joerg@debian.org>
diff --git a/dak/process_unchecked.py b/dak/process_unchecked.py
index 9bd8197..f2efe8c 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:
--
1.5.5.GIT
Reply to: