]> err.no Git - dak/commitdiff
Fix sponsor email handling in new.822 (Closes: #662024)
authorLuca Falavigna <dktrkranz@debian.org>
Sun, 4 Mar 2012 10:19:41 +0000 (10:19 +0000)
committerLuca Falavigna <dktrkranz@debian.org>
Sun, 4 Mar 2012 10:19:41 +0000 (10:19 +0000)
Signed-off-by: Luca Falavigna <dktrkranz@debian.org>
dak/queue_report.py

index 5fd9288a8c6da8711b48e1eff274f213e169c955..9c0d2926a16cb2105731dc41009b28ad599751aa 100755 (executable)
@@ -550,7 +550,7 @@ def process_changes_files(changes_files, type, log, rrd_dir):
                (name, mail) = changedby.split(":", 1)
                log.write("Changed-By: " + name + " <"+mail+">" + "\n")
             if sponsor:
-               log.write("Sponsored-By: " + sponsor + "\n")
+               log.write("Sponsored-By: " + "@".join(sponsor.split("@")[:2]) + "\n")
             log.write("Distribution:")
             for dist in distribution:
                log.write(" " + dist)