[dak/master 1/2] More checks for Dinstall::BugServer
Signed-off-by: Mark Hymers <mhy@debian.org>
---
daklib/queue.py | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/daklib/queue.py b/daklib/queue.py
index cde8530..5055ea5 100755
--- a/daklib/queue.py
+++ b/daklib/queue.py
@@ -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__"]
--
1.7.2.5
Reply to: