From 457fd2aa0e958d520490d44da21cc0a5a998ec49 Mon Sep 17 00:00:00 2001 From: Luca Falavigna Date: Thu, 11 Aug 2011 13:46:47 +0000 Subject: [PATCH] Check whether GPG key has a @debian.org uid, and use it Signed-off-by: Luca Falavigna --- daklib/queue.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/daklib/queue.py b/daklib/queue.py index 4e7a5e95..82f3d9b9 100755 --- a/daklib/queue.py +++ b/daklib/queue.py @@ -1666,8 +1666,12 @@ class Upload(object): sponsored = True else: sponsored = True + sponsor_addresses = utils.gpg_get_key_addresses(self.pkg.changes["fingerprint"]) + debian_emails = filter(lambda addr: addr.endswith('@debian.org'), sponsor_addresses) + if uid_email not in debian_emails: + if debian_emails: + uid_email = debian_emails[0] if ("source" in self.pkg.changes["architecture"] and uid_email and utils.is_email_alias(uid_email)): - sponsor_addresses = utils.gpg_get_key_addresses(self.pkg.changes["fingerprint"]) if (self.pkg.changes["maintaineremail"] not in sponsor_addresses and self.pkg.changes["changedbyemail"] not in sponsor_addresses): self.pkg.changes["sponsoremail"] = uid_email -- 2.39.5