From: Gerfried Fuchs <rhonda@debian.at>
Date: Mon, 2 Aug 2010 11:02:32 +0000 (+0200)
Subject: add indentation to reason for 822 format
X-Git-Tag: debian-r/squeeze~629^2
X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=4fe41c68b3bd2457f06e53fc529b42c1a67e2a6d;p=dak.git

add indentation to reason for 822 format

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>
---

diff --git a/dak/rm.py b/dak/rm.py
index 2bd96eec..f63b2ca6 100755
--- 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")