From: Alexander Reichle-Schmehl Date: Tue, 28 Sep 2010 12:34:45 +0000 (+0000) Subject: Use different mail templates to close removal bugs, if related bugs got closed X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=d0f97457b8eba235067e538971cf6271b3779208;p=dak.git Use different mail templates to close removal bugs, if related bugs got closed --- 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 diff --git a/templates/rm.bug-close-with-related b/templates/rm.bug-close-with-related new file mode 100644 index 00000000..6a8f8c83 --- /dev/null +++ b/templates/rm.bug-close-with-related @@ -0,0 +1,45 @@ +From: __RM_ADDRESS__ +To: __BUG_NUMBER__-close@__BUG_SERVER__ +__CC__ +__BCC__ +X-Debian: DAK +MIME-Version: 1.0 +Content-Type: text/plain; charset="utf-8" +Content-Transfer-Encoding: 8bit +Subject: Bug#__BUG_NUMBER__: __SUBJECT__ + +We believe that the bug you reported is now fixed; the following +package(s) have been removed from __SUITE_LIST__: + +__SUMMARY__ +Note that the package(s) have simply been removed from the tag +database and may (or may not) still be in the pool; this is not a bug. +The package(s) will be physically removed automatically when no suite +references them (and in the case of source, when no binary references +it). Please also remember that the changes have been done on the +master archive (__MASTER_ARCHIVE__) and will not propagate to any +mirrors (__PRIMARY_MIRROR__ included) until the next cron.daily run at the +earliest. + +Packages are usually not removed from testing by hand. Testing tracks +unstable and will automatically remove packages which were removed +from unstable when removing them from testing causes no dependency +problems. The release team can force a removal from testing if it is +really needed, please contact them if this should be the case. + +We try to close Bugs which have been reported against this package +automatically. But please check all old bugs, if they where closed +correctly or should have been re-assign to another package. + +Thank you for reporting the bug, which will now be closed. If you +have further comments please address them to __BUG_NUMBER__@__BUG_SERVER__. + +The full log for this bug can be viewed at http://__BUG_SERVER__/__BUG_NUMBER__ + +This message was generated automatically; if you believe that there is +a problem with it please contact the archive administrators by mailing +__ADMIN_ADDRESS__. + +__DISTRO__ distribution maintenance software +pp. +__WHOAMI__ (the ftpmaster behind the curtain)