]> git.decadent.org.uk Git - dak.git/commitdiff
add indentation to reason for 822 format
authorGerfried Fuchs <rhonda@debian.at>
Mon, 2 Aug 2010 11:02:32 +0000 (13:02 +0200)
committerGerfried Fuchs <rhonda@debian.at>
Mon, 2 Aug 2010 11:04:18 +0000 (13:04 +0200)
The Reason: for a remove can span multiple lines. This means they need
to be prefixed with whitespace to not break the rfc822 format.

Signed-off-by: Gerfried Fuchs <rhonda@debian.at>
dak/rm.py

index 2bd96eec7d6cca923e39c6d285b2d7a282b3bccb..f63b2ca6b80e0f87afcc7d1d4aeb394623ef8d1b 100755 (executable)
--- a/dak/rm.py
+++ b/dak/rm.py
@@ -530,7 +530,7 @@ def main ():
         logfile822.write("Binaries:\n")
         for binary in binaries:
             logfile822.write(" %s\n" % binary)
-    logfile822.write("Reason: %s\n" % Options["Reason"])
+    logfile822.write("Reason: %s\n" % Options["Reason"].replace('\n', '\n '))
     if Options["Done"]:
         logfile822.write("Bug: %s\n" % Options["Done"])
     logfile822.write("\n")