From: Alexander Reichle-Schmehl Date: Fri, 24 Sep 2010 10:44:14 +0000 (+0000) Subject: Also don't reuse the bcc variable, but use a local one X-Git-Url: https://git.decadent.org.uk/gitweb/?p=dak.git;a=commitdiff_plain;h=0f97540f50957524f1352e2e83dda52186e05238 Also don't reuse the bcc variable, but use a local one --- diff --git a/dak/rm.py b/dak/rm.py index fa648793..11ec6c9e 100755 --- a/dak/rm.py +++ b/dak/rm.py @@ -591,7 +591,6 @@ def main (): Subst_common = {} Subst_common["__RM_ADDRESS__"] = cnf["Dinstall::MyEmailAddress"] Subst_common["__BUG_SERVER__"] = cnf["Dinstall::BugServer"] - bcc = [] Subst_common["__CC__"] = "X-DAK: dak rm" if carbon_copy: Subst_common["__CC__"] += "\nCc: " + ", ".join(carbon_copy) @@ -602,8 +601,9 @@ def main (): Subst_common["__WHOAMI__"] = whoami # Send the bug closing messages - Subst_close_rm = Subst_common if Options["Done"]: + Subst_close_rm = Subst_common + bcc = [] if cnf.Find("Dinstall::Bcc") != "": bcc.append(cnf["Dinstall::Bcc"]) if cnf.Find("Rm::Bcc") != "": @@ -629,6 +629,7 @@ def main (): # currently there's no sane way to determine them if Options["Do-Close"]: Subst_close_other = Subst_common + bcc = [] if len(versions) == 1: Subst_close_other["__VERSION__"] = versions[0] else: