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

Don't say we're sending mail when we're not

Signed-off-by: NMark Hymers <mhy@debian.org>
上级 62bb1389
...@@ -2012,6 +2012,10 @@ distribution.""" ...@@ -2012,6 +2012,10 @@ distribution."""
self.Subst["__SHORT_SUMMARY__"] = short_summary self.Subst["__SHORT_SUMMARY__"] = short_summary
# Skip all of this if not sending mail to avoid confusing people
if cnf.has_key("Dinstall::Options::No-Mail") and cnf["Dinstall::Options::No-Mail"]:
return summary
for dist in self.pkg.changes["distribution"].keys(): for dist in self.pkg.changes["distribution"].keys():
suite = get_suite(dist) suite = get_suite(dist)
if suite is None: continue if suite is None: continue
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册