From: Joerg Jaspert Date: Thu, 24 Apr 2008 22:39:44 +0000 (+0200) Subject: Fix Thomas patch so that it works in all cases X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;ds=inline;h=680dad9570744a4189fedb0aa4c468df1f01d705;p=dak.git Fix Thomas patch so that it works in all cases --- diff --git a/daklib/queue.py b/daklib/queue.py index a5a8eab4..7bf2df18 100755 --- a/daklib/queue.py +++ b/daklib/queue.py @@ -285,6 +285,8 @@ class Upload: else: Subst["__MAINTAINER_FROM__"] = changes["maintainer2047"] Subst["__MAINTAINER_TO__"] = changes["maintainer2047"] + if "sponsoremail" in changes: + Subst["__MAINTAINER_TO__"] += ", %s"%changes["sponsoremail"] Subst["__MAINTAINER__"] = changes.get("maintainer", "Unknown") if self.Cnf.has_key("Dinstall::TrackingServer") and changes.has_key("source"): Subst["__MAINTAINER_TO__"] += "\nBcc: %s@%s" % (changes["source"], self.Cnf["Dinstall::TrackingServer"])