提交 2c326454 编写于 作者: M Mark Hymers

More checks for Dinstall::BugServer

Signed-off-by: NMark Hymers <mhy@debian.org>
上级 f5fccfa5
......@@ -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__"]
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册