X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Ftransitions.py;h=00348f2dc842c1e50978b07a4046d19864e0f4d3;hb=bebc0055ecf573e0fa2fd663d8e6d52c5f8f1cdc;hp=4080f3e63b3ed8a7febc235438d39ac6dc37c055;hpb=71ff69b679a4ac070eb15b77d147ec557fb228d6;p=dak.git diff --git a/dak/transitions.py b/dak/transitions.py index 4080f3e6..00348f2d 100755 --- a/dak/transitions.py +++ b/dak/transitions.py @@ -457,22 +457,22 @@ def check_transitions(transitions): subst['__TRANSITION_MESSAGE__'] += info[remove] + '\n' del transitions[remove] - edit_file = temp_transitions_file(transitions) - write_transitions_from_file(edit_file) - # If we have a mail address configured for transitions, # send a notification subst['__TRANSITION_EMAIL__'] = Cnf.get("Transitions::Notifications", "") if subst['__TRANSITION_EMAIL__'] != "": - print "Sending notification to %s" % subst['__TRANSITION__EMAIL__'] + print "Sending notification to %s" % subst['__TRANSITION_EMAIL__'] subst['__DAK_ADDRESS__'] = Cnf["Dinstall::MyEmailAddress"] subst['__BCC__'] = 'X-DAK: dak transitions' if Cnf.has_key("Dinstall::Bcc"): - subst["__BCC__"] += '\nBcc: %s' % Cnf["Dinstall:Bcc"] + subst["__BCC__"] += '\nBcc: %s' % Cnf["Dinstall::Bcc"] message = utils.TemplateSubst(subst, os.path.join(Cnf["Dir::Templates"], 'transition.removed')) utils.send_mail(message) + edit_file = temp_transitions_file(transitions) + write_transitions_from_file(edit_file) + print "Done" else: print "WTF are you typing?"