From: Mark Hymers Date: Sat, 30 Jul 2011 12:54:04 +0000 (+0100) Subject: Don't say we're sending mail when we're not X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=2c345145c5984f3cc9ea995da4c510c600237a35;p=dak.git Don't say we're sending mail when we're not Signed-off-by: Mark Hymers --- diff --git a/daklib/queue.py b/daklib/queue.py index c2f0414f..514e3226 100755 --- a/daklib/queue.py +++ b/daklib/queue.py @@ -2012,6 +2012,10 @@ distribution.""" 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