X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fprocess_unchecked.py;h=779f6765c0418e711502d2d8b1e76a9f3c689ba3;hb=e79e9a1395528354b5978fc4b92a8fcdd1559d70;hp=93187709cf78bc4dedf12c998b8b3539b13f2441;hpb=fc2f0edf2d2bfafd627da4336689d41f064f78f5;p=dak.git diff --git a/dak/process_unchecked.py b/dak/process_unchecked.py index 93187709..779f6765 100755 --- a/dak/process_unchecked.py +++ b/dak/process_unchecked.py @@ -919,19 +919,14 @@ def check_urgency (): ################################################################################ def check_hashes (): - # Make sure we recognise the format of the Files: field - format = changes.get("format", "0.0").split(".",1) - if len(format) == 2: - format = int(format[0]), int(format[1]) - else: - format = int(float(format[0])), 0 - - utils.check_hash(".changes", files, "md5sum", apt_pkg.md5sum) - utils.check_hash(".dsc", dsc_files, "md5sum", apt_pkg.md5sum) + utils.check_hash(".changes", files, "md5", apt_pkg.md5sum) + utils.check_size(".changes", files) + utils.check_hash(".dsc", dsc_files, "md5", apt_pkg.md5sum) + utils.check_size(".dsc", dsc_files) # This is stupid API, but it'll have to do for now until # we actually have proper abstraction - for m in utils.ensure_hashes(Upload): + for m in utils.ensure_hashes(changes, dsc, files, dsc_files): reject(m) ################################################################################