]> err.no Git - dak/commitdiff
More checks for Dinstall::BugServer
authorMark Hymers <mhy@debian.org>
Tue, 26 Jul 2011 13:50:16 +0000 (14:50 +0100)
committerMark Hymers <mhy@debian.org>
Tue, 26 Jul 2011 13:50:16 +0000 (14:50 +0100)
Signed-off-by: Mark Hymers <mhy@debian.org>
daklib/queue.py

index cde85301cf43126ddafc09182fd087fac3b85271..5055ea57f266c494cdcb29b1bf15370843f4e292 100755 (executable)
@@ -443,7 +443,8 @@ class Upload(object):
         cnf = Config()
         self.Subst = {}
         self.Subst["__ADMIN_ADDRESS__"] = cnf["Dinstall::MyAdminAddress"]
-        self.Subst["__BUG_SERVER__"] = cnf["Dinstall::BugServer"]
+        if cnf.has_key("Dinstall::BugServer"):
+            self.Subst["__BUG_SERVER__"] = cnf["Dinstall::BugServer"]
         self.Subst["__DISTRO__"] = cnf["Dinstall::MyDistribution"]
         self.Subst["__DAK_ADDRESS__"] = cnf["Dinstall::MyEmailAddress"]
 
@@ -2027,7 +2028,7 @@ distribution."""
 
                 del self.Subst["__ANNOUNCE_LIST_ADDRESS__"]
 
-        if cnf.FindB("Dinstall::CloseBugs"):
+        if cnf.FindB("Dinstall::CloseBugs") and cnf.has_key("Dinstall::BugServer"):
             summary = self.close_bugs(summary, action)
 
         del self.Subst["__SHORT_SUMMARY__"]