[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[dak/master 1/2] Don't say we're sending mail when we're not



Signed-off-by: Mark Hymers <mhy@debian.org>
---
 daklib/queue.py |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/daklib/queue.py b/daklib/queue.py
index c2f0414..514e322 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
-- 
1.7.2.5



Reply to: