]> err.no Git - dak/commitdiff
prod_maintainer wants to take arguments now
authorJoerg Jaspert <joerg@debian.org>
Wed, 15 Apr 2009 21:17:03 +0000 (23:17 +0200)
committerJoerg Jaspert <joerg@debian.org>
Wed, 15 Apr 2009 21:17:03 +0000 (23:17 +0200)
Signed-off-by: Joerg Jaspert <joerg@debian.org>
dak/process_new.py

index b231543717827fe5aafbd75a41cfc2a82cebaffb..c33b3d36bc6533561d465d3486a1bf112b18fcbd 100755 (executable)
@@ -569,9 +569,14 @@ def add_overrides (new):
 
 ################################################################################
 
-def prod_maintainer ():
+def prod_maintainer (note):
     # 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)
+    temp_file.close()
     editor = os.environ.get("EDITOR","vi")
     answer = 'E'
     while answer == 'E':