- if format < v:
- for m in create_hash(fs_m, h, f, files):
- rejmsg.append(m)
- else:
- fs = build_file_list(changes, 0, "checksums-%s" % h, h)
- for m in check_hash(".changes %s" % (h), fs, h, f, files):
- rejmsg.append(m)
- except NoFilesFieldError:
- rejmsg.append("No Checksums-%s: field in .changes" % (h))
- except UnknownFormatError, format:
- rejmsg.append("%s: unknown format of .changes" % (format))
- except ParseChangesError, line:
- rejmsg.append("parse error for Checksums-%s in .changes, can't grok: %s." % (h, line))
-
- if "source" not in changes["architecture"]: continue
-
- try:
- if format < v:
- for m in create_hash(fs_md, h, f, dsc_files):
- rejmsg.append(m)
- else:
- fs = build_file_list(dsc, 1, "checksums-%s" % h, h)
- for m in check_hash(".dsc %s" % (h), fs, h, f, dsc_files):
- rejmsg.append(m)
- except UnknownFormatError, format:
- rejmsg.append("%s: unknown format of .dsc" % (format))
- except NoFilesFieldError:
- rejmsg.append("No Checksums-%s: field in .dsc" % (h))
- except ParseChangesError, line:
- rejmsg.append("parse error for Checksums-%s in .dsc, can't grok: %s." % (h, line))