]> git.decadent.org.uk Git - dak.git/blobdiff - dak/process_unchecked.py
and revert the remainder
[dak.git] / dak / process_unchecked.py
index 0e2d61669dc983d4686fd8afc1005a3826fdfc0f..f2efe8c0393439dbfe812bd542e30514d240845c 100755 (executable)
@@ -701,7 +701,7 @@ def check_dsc():
         reject("%s: no Files: field." % (dsc_filename))
         return 0
     except UnknownFormatError, format:
-        reject("%s: unknown format '%s'." % (filename, format))
+        reject("%s: unknown format '%s'." % (dsc_filename, format))
         return 0
     except ParseChangesError, line:
         reject("%s: parse error, can't grok: %s." % (dsc_filename, line))
@@ -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: