From: Mark Hymers Date: Sun, 6 Dec 2009 01:06:16 +0000 (+0000) Subject: fix message sending X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3d0f19ee4030700284db07b155d0f8d8d8f43f8b;p=dak fix message sending Signed-off-by: Mark Hymers --- diff --git a/daklib/queue_install.py b/daklib/queue_install.py index 912fdcbb..b4b0ee3c 100644 --- a/daklib/queue_install.py +++ b/daklib/queue_install.py @@ -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) ################################################################################