From: Joerg Jaspert Date: Mon, 27 Sep 2010 19:45:23 +0000 (+0200) Subject: Merge remote branch 'tolimar/rm-close-bugs' into merge X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=86ac396f89d59125db98b6e803471cf8529a615d;p=dak.git Merge remote branch 'tolimar/rm-close-bugs' into merge * tolimar/rm-close-bugs: Log which bugs got closes Signed-off-by: Joerg Jaspert --- 86ac396f89d59125db98b6e803471cf8529a615d diff --cc dak/rm.py index 11ec6c9e,a790e7ba..db43de19 --- a/dak/rm.py +++ b/dak/rm.py @@@ -639,14 -637,18 +637,18 @@@ def main () else: Subst_close_other["__BCC__"] = "X-Filler: 42" # at this point, I just assume, that the first closed bug gives -- # some usefull information on why the package got removed ++ # some useful information on why the package got removed Subst_close_other["__BUG_NUMBER__"] = utils.split_args(Options["Done"])[0] if len(sources) > 1: utils.fubar("Closing bugs for multiple source pakcages is not supported. Do it yourself.") Subst_close_other["__BUG_NUMBER_ALSO__"] = "" Subst_close_other["__SOURCE__"] = source.split("_", 1)[0] + logfile.write("Also closing bugs: ") + logfile822.write("Also-Bugs: ") for bug in bts.get_bugs('src', source.split("_", 1)[0], 'status', 'open'): Subst_close_other["__BUG_NUMBER_ALSO__"] += str(bug) + "-done@" + cnf["Dinstall::BugServer"] + "," - logfile.wirte(" " + str(bug)) - logfile822.wirte(" " + str(bug)) ++ logfile.write(" " + str(bug)) ++ logfile822.write(" " + str(bug)) mail_message = utils.TemplateSubst(Subst_close_other,cnf["Dir::Templates"]+"/rm.bug-close-related") if Subst_close_other["__BUG_NUMBER_ALSO__"]: utils.send_mail(mail_message)