Signed-off-by: Mark Hymers <mhy@debian.org>
"""
cnf = Config()
+
+ # 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
+
announcetemplate = os.path.join(cnf["Dir::Templates"], 'process-unchecked.announce')
# Only do announcements for source uploads with a recent dpkg-dev installed
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():
suite = get_suite(dist)
if suite is None: continue