]> err.no Git - dak/commitdiff
Merge remote branch 'tolimar/rm-close-bugs' into merge
authorJoerg Jaspert <joerg@debian.org>
Mon, 27 Sep 2010 19:45:23 +0000 (21:45 +0200)
committerJoerg Jaspert <joerg@debian.org>
Mon, 27 Sep 2010 19:45:23 +0000 (21:45 +0200)
* tolimar/rm-close-bugs:
  Log which bugs got closes

Signed-off-by: Joerg Jaspert <joerg@debian.org>
1  2 
dak/rm.py

diff --cc dak/rm.py
index 11ec6c9eb09637cfaeb6141cc0bcd4082f3e1c31,a790e7bac708f6388ef4fb19fd3c82d47a81b263..db43de190dc82f02e59e7c185d1cfdf85fc3df5c
+++ 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)