X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=daklib%2Fqueue.py;h=35754c8d738a49d9dab87f80f0a1a57556c9b1ed;hb=35cd0972b5e14dc8727403e13fccd30776f3ae02;hp=599b077f5547faae50cba80eb07cb8393071194f;hpb=41310a4a047af310a0130abb6274caaa1ffbdb1d;p=dak.git diff --git a/daklib/queue.py b/daklib/queue.py index 599b077f..35754c8d 100755 --- a/daklib/queue.py +++ b/daklib/queue.py @@ -803,7 +803,7 @@ distribution.""" ########################################################################### - def do_reject (self, manual = 0, reject_message = ""): + def do_reject (self, manual = 0, reject_message = "", note = ""): """ Reject an upload. If called without a reject message or C{manual} is true, spawn an editor so the user can write one. @@ -821,6 +821,11 @@ distribution.""" # editor so the user can add one in... if manual and not reject_message: (fd, temp_filename) = utils.temp_filename() + temp_file = os.fdopen(fd, 'w') + if len(note) > 0: + for line in note: + temp_file.write(line) + temp_file.close() editor = os.environ.get("EDITOR","vi") answer = 'E' while answer == 'E':