From: Torsten Werner Date: Sat, 9 Jan 2010 11:22:42 +0000 (+0100) Subject: fix function prod_maintainer() X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3364b82717b7ef97e7fa53c1d1c44aa221245cb8;p=dak fix function prod_maintainer() Signed-off-by: Torsten Werner --- diff --git a/dak/process_new.py b/dak/process_new.py index b8550fd1..74bae8fe 100755 --- a/dak/process_new.py +++ b/dak/process_new.py @@ -448,14 +448,13 @@ def add_overrides (new, upload, session): ################################################################################ -def prod_maintainer (note, upload): +def prod_maintainer (notes, upload): cnf = Config() # Here we prepare an editor and get them ready to prod... (fd, temp_filename) = utils.temp_filename() temp_file = os.fdopen(fd, 'w') - if len(note) > 0: - for line in note: - temp_file.write(line) + for note in notes: + temp_file.write(note.comment) temp_file.close() editor = os.environ.get("EDITOR","vi") answer = 'E'