From 3d0f19ee4030700284db07b155d0f8d8d8f43f8b Mon Sep 17 00:00:00 2001 From: Mark Hymers Date: Sun, 6 Dec 2009 01:06:16 +0000 Subject: [PATCH] fix message sending Signed-off-by: Mark Hymers --- daklib/queue_install.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) 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) ################################################################################ -- 2.39.5