X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=daklib%2Fqueue.py;h=547972ed0932b6af669e836e96a61dbfcbdf100d;hb=4cbcf2ec05c369e20897afb68770826468b84fdf;hp=6f01ba6cbb0ea22472b2213ab35a9270008795ba;hpb=346eae3259a226dab23787d21776238b8fa502e0;p=dak.git diff --git a/daklib/queue.py b/daklib/queue.py index 6f01ba6c..547972ed 100644 --- a/daklib/queue.py +++ b/daklib/queue.py @@ -108,8 +108,7 @@ def prod_maintainer(notes, upload): # 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 +131,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"]) @@ -186,8 +184,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