X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fprocess_unchecked.py;h=82133068be56c33fb4d4b96b6908467eaafb14b5;hb=50eba5908c82a11c5c2e7767059a775b214dda5a;hp=30737ed1252fb7d7996d1612541798ad76d87db4;hpb=fdf8b1f6c1fe54511af3f1b29ddd5a414baa2e14;p=dak.git diff --git a/dak/process_unchecked.py b/dak/process_unchecked.py index 30737ed1..82133068 100755 --- a/dak/process_unchecked.py +++ b/dak/process_unchecked.py @@ -1072,6 +1072,11 @@ def check_signed_by_key(): if uid_name == "": sponsored = 1 else: sponsored = 1 + if 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))