X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fprocess_unchecked.py;h=f2efe8c0393439dbfe812bd542e30514d240845c;hb=536cb00b606a8581a76b66f55a58eabdf9f7fd3d;hp=0e2d61669dc983d4686fd8afc1005a3826fdfc0f;hpb=895a32ee49e0f870daa087c1784f843038450847;p=dak.git diff --git a/dak/process_unchecked.py b/dak/process_unchecked.py index 0e2d6166..f2efe8c0 100755 --- a/dak/process_unchecked.py +++ b/dak/process_unchecked.py @@ -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: