X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fprocess_unchecked.py;h=6e62c431284b95790fe7f22b53fca747a5710b0e;hb=55a4e729db84095b12a67974092216be09ea384c;hp=d33408cfa229d1829a6a91694d8bb1943a11cd61;hpb=ebc80c6941140d9d81a18069d45097478c8d1c60;p=dak.git diff --git a/dak/process_unchecked.py b/dak/process_unchecked.py index d33408cf..6e62c431 100755 --- a/dak/process_unchecked.py +++ b/dak/process_unchecked.py @@ -1072,8 +1072,12 @@ def check_signed_by_key(): if uid_name == "": sponsored = 1 else: sponsored = 1 - if daklib.utils.is_email_alias(uid_email): - changes["sponsoremail"] = uid_email + if ("source" not in changes["architecture"] and + daklib.utils.is_email_alias(uid_email)): + sponsor_addresses = daklib.utils.gpg_get_key_addresses(changes["fingerprint"]) + if (changes["maintaineremail"] not in sponsor_addresses and + changes["changedbyemail"] not in sponsor_addresses): + changes["sponsoremail"] = uid_email if sponsored and not may_sponsor: reject("%s is not authorised to sponsor uploads" % (uid))