X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=dak%2Fprocess_unchecked.py;h=737472af1c0d646d76b49cecaa4521f1c3ff3b1a;hb=6c28a1fecc669c80960a7168a8f673d09302a541;hp=7d8d4f233d15033d8384080f33bb6221cb491c39;hpb=279743ce44cd6c487ad57bcd3d15306402893763;p=dak.git diff --git a/dak/process_unchecked.py b/dak/process_unchecked.py index 7d8d4f23..737472af 100755 --- a/dak/process_unchecked.py +++ b/dak/process_unchecked.py @@ -997,10 +997,10 @@ def check_timestamps(): ################################################################################ def lookup_uid_from_fingerprint(fpr): - q = Upload.projectB.query("SELECT u.uid, u.name, u.debian_maintainer FROM fingerprint f, uid u WHERE f.uid = u.id AND f.fingerprint = '%s'" % (fpr)) + q = Upload.projectB.query("SELECT u.uid, u.name, k.debian_maintainer FROM fingerprint f JOIN keyrings k ON (f.keyring=k.id), uid u WHERE f.uid = u.id AND f.fingerprint = '%s'" % (fpr)) qs = q.getresult() if len(qs) == 0: - return (None, None) + return (None, None, None) else: return qs[0] @@ -1047,13 +1047,12 @@ def check_signed_by_key(): highest_sid, highest_version = None, None - is_allowed = 1 + should_reject = True for si in q.getresult(): if highest_version == None or apt_pkg.VersionCompare(si[1], highest_version) == 1: highest_sid = si[0] highest_version = si[1] - print highest_sid if highest_sid == None: reject("Source package %s does not have 'DM-Upload-Allowed: yes' in its most recent version" % changes["source"]) else: @@ -1061,10 +1060,10 @@ def check_signed_by_key(): for m in q.getresult(): (rfc822, rfc2047, name, email) = utils.fix_maintainer(m[0]) if email == uid_email or name == uid_name: - is_allowed=0 + should_reject=False break - if is_allowed: + if should_reject == True: reject("%s is not in Maintainer or Uploaders of source package %s" % (uid, changes["source"])) for b in changes["binary"].keys():