X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Frm.py;h=0f7c9f2a8d018402400ce656309f07985316fb06;hb=d0f97457b8eba235067e538971cf6271b3779208;hp=1190d023f737a022f1d26f381d503987731dd993;hpb=39cdc8cc1607dbacfcdbf8182e3a024c05737fe4;p=dak.git diff --git a/dak/rm.py b/dak/rm.py index 1190d023..0f7c9f2a 100755 --- a/dak/rm.py +++ b/dak/rm.py @@ -619,7 +619,10 @@ def main (): Subst_close_rm["__PRIMARY_MIRROR__"] = Archive["PrimaryMirror"] for bug in utils.split_args(Options["Done"]): Subst_close_rm["__BUG_NUMBER__"] = bug - mail_message = utils.TemplateSubst(Subst_close_rm,cnf["Dir::Templates"]+"/rm.bug-close") + if Options["Do-Close"]: + mail_message = utils.TemplateSubst(Subst_close_rm,cnf["Dir::Templates"]+"/rm.bug-close-with-related") + else: + mail_message = utils.TemplateSubst(Subst_close_rm,cnf["Dir::Templates"]+"/rm.bug-close") utils.send_mail(mail_message) # close associated bug reports