]> git.decadent.org.uk Git - dak.git/commitdiff
Fix Thomas patch so that it works in all cases
authorJoerg Jaspert <joerg@debian.org>
Thu, 24 Apr 2008 22:39:44 +0000 (00:39 +0200)
committerJoerg Jaspert <joerg@debian.org>
Thu, 24 Apr 2008 22:39:44 +0000 (00:39 +0200)
daklib/queue.py

index a5a8eab4a2518e703d3a8c4f9884b588c60b9201..7bf2df18b24e982042786f680154b574c92de3dc 100755 (executable)
@@ -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"])