X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fqueue_report.py;h=ff2dbc8e7ad64198613d06744a30276e1103599e;hb=fdb4324305261d63e35a55a3628b833fb8974e3d;hp=e270cc71e109a124b77e0ffbb76abaa042c33137;hpb=0c31989a95f5d91605ab7dace9f9a88297b2960b;p=dak.git diff --git a/dak/queue_report.py b/dak/queue_report.py index e270cc71..ff2dbc8e 100755 --- a/dak/queue_report.py +++ b/dak/queue_report.py @@ -40,7 +40,7 @@ import apt_pkg from daklib import utils from daklib.queue import Upload -from daklib.dbconn import DBConn, has_new_comment, DBChange +from daklib.dbconn import DBConn, has_new_comment, DBChange, get_uid_from_fingerprint from daklib.textutils import fix_maintainer from daklib.dak_exceptions import * @@ -395,12 +395,11 @@ def process_changes_files(changes_files, type, log): closes=j["closes"].keys() if dbc: fingerprint = dbc.fingerprint - - # TODO: This won't work now as it never gets set - # Fix so that we compare the changed-by/maintainer and the signing key - # Should probably be done somewhere more central - #if j.has_key("sponsoremail"): - # sponsor=j["sponsoremail"] + sponsor_name = get_uid_from_fingerprint(fingerprint).name + sponsor_email = get_uid_from_fingerprint(fingerprint).uid + "@debian.org" + if sponsor_name != maintainer["maintainername"] and sponsor_name != changeby["changedbyname"] and \ + sponsor_email != maintainer["maintaineremail"] and sponsor_name != changeby["changedbyemail"]: + sponsor = sponsor_email for arch in j["architecture"].keys(): arches[arch] = ""