]> err.no Git - dak/commitdiff
fix message sending
authorMark Hymers <mhy@debian.org>
Sun, 6 Dec 2009 01:06:16 +0000 (01:06 +0000)
committerMark Hymers <mhy@debian.org>
Sun, 6 Dec 2009 01:06:16 +0000 (01:06 +0000)
Signed-off-by: Mark Hymers <mhy@debian.org>
daklib/queue_install.py

index 912fdcbb6c6862ccded879592e4cf1a262dcfc9f..b4b0ee3c705fb49e77daa9c7be1cee9e8dd9763d 100644 (file)
@@ -69,12 +69,13 @@ def package_to_queue(u, summary, short_summary, queue, chg, session, announce=No
     u.check_override()
 
     # Send accept mail, announce to lists and close bugs
-    template = os.path.join(cnf["Dir::Templates"], announce)
-    u.update_subst()
-    u.Subst["__SUITE__"] = ""
-    mail_message = utils.TemplateSubst(u.Subst, template)
-    utils.send_mail(mail_message)
-    u.announce(short_summary, True)
+    if announce:
+        template = os.path.join(cnf["Dir::Templates"], announce)
+        u.update_subst()
+        u.Subst["__SUITE__"] = ""
+        mail_message = utils.TemplateSubst(u.Subst, template)
+        utils.send_mail(mail_message)
+        u.announce(short_summary, True)
 
 ################################################################################