提交 475410ed 编写于 作者: L Luca Falavigna

daklib/queue.py: check if sponsoremail is set first

Signed-off-by: NLuca Falavigna <dktrkranz@debian.org>
上级 0e17fb05
......@@ -338,7 +338,8 @@ class Upload(object):
session = DBConn().session()
fpr = get_fingerprint(self.pkg.changes['fingerprint'], session)
if self.check_if_upload_is_sponsored("%s@debian.org" % fpr.uid.uid, fpr.uid.name):
self.Subst["__MAINTAINER_TO__"] += ", %s" % self.pkg.changes["sponsoremail"]
if self.pkg.changes.has_key("sponsoremail"):
self.Subst["__MAINTAINER_TO__"] += ", %s" % self.pkg.changes["sponsoremail"]
session.close()
if cnf.has_key("Dinstall::TrackingServer") and self.pkg.changes.has_key("source"):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册