X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=daklib%2Fqueue.py;h=9dd2702ca02aa296071f768cd7764c7c4e9f37cf;hb=e5394a9508746d2b4f55ca9668fc087da37b8d30;hp=6f01ba6cbb0ea22472b2213ab35a9270008795ba;hpb=346eae3259a226dab23787d21776238b8fa502e0;p=dak.git diff --git a/daklib/queue.py b/daklib/queue.py index 6f01ba6c..9dd2702c 100644 --- a/daklib/queue.py +++ b/daklib/queue.py @@ -104,12 +104,12 @@ def check_valid(overrides, session): def prod_maintainer(notes, upload): cnf = Config() changes = upload.changes + whitelists = [ upload.target_suite.mail_whitelist ] # Here we prepare an editor and get them ready to prod... (fd, temp_filename) = utils.temp_filename() temp_file = os.fdopen(fd, 'w') - for note in notes: - temp_file.write(note.comment) + temp_file.write("\n\n=====\n\n".join([note.comment for note in notes])) temp_file.close() editor = os.environ.get("EDITOR","vi") answer = 'E' @@ -132,8 +132,7 @@ def prod_maintainer(notes, upload): if answer == 'A': return elif answer == 'Q': - end() - sys.exit(0) + return 0 # Otherwise, do the proding... user_email_address = utils.whoami() + " <%s>" % ( cnf["Dinstall::MyAdminAddress"]) @@ -156,7 +155,7 @@ def prod_maintainer(notes, upload): Subst,cnf["Dir::Templates"]+"/process-new.prod") # Send the prod mail - utils.send_mail(prod_mail_message) + utils.send_mail(prod_mail_message, whitelists=whitelists) print "Sent prodding message" @@ -186,8 +185,7 @@ def edit_note(note, upload, session, trainee=False): if answer == 'A': return elif answer == 'Q': - end() - sys.exit(0) + return 0 comment = NewComment() comment.package = upload.changes.source