From 3dda7f70c2a25c6dcefb70ffc99e0d8231d09c27 Mon Sep 17 00:00:00 2001 From: Mark Hymers Date: Tue, 27 Jan 2009 21:54:27 +0000 Subject: [PATCH] don't die on silly input such as: Changed-By: P=Q6P9 PP2 Signed-off-by: Mark Hymers --- dak/queue_report.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/dak/queue_report.py b/dak/queue_report.py index fe8a4a1b..cc59a9f8 100755 --- a/dak/queue_report.py +++ b/dak/queue_report.py @@ -268,15 +268,15 @@ def table_row(source, version, arch, last_mod, maint, distribution, closes, fing print "%s
" % (dist) print "" print "%s" % (last_mod) - (name, mail) = maint.split(":") + (name, mail) = maint.split(":", 1) print "" print "Maintainer: %s
" % (utils.html_escape(mail), utils.html_escape(name)) - (name, mail) = changedby.split(":") + (name, mail) = changedby.split(":", 1) print "Changed-By: %s
" % (utils.html_escape(mail), utils.html_escape(name)) try: - (login, domain) = sponsor.split("@") + (login, domain) = sponsor.split("@", 1) print "Sponsor: %s@debian.org
" % (utils.html_escape(login), utils.html_escape(login)) except: pass @@ -455,10 +455,10 @@ def process_changes_files(changes_files, type, log): log.write("Last-Modified: " + str(int(time.time()) - int(last_modified)) + "\n") log.write("Queue: " + type + "\n") - (name, mail) = maint.split(":") + (name, mail) = maint.split(":", 1) log.write("Maintainer: " + name + " <"+mail+">" + "\n") if changedby: - (name, mail) = changedby.split(":") + (name, mail) = changedby.split(":", 1) log.write("Changed-By: " + name + " <"+mail+">" + "\n") if sponsor: log.write("Sponsored-By: " + sponsor + "\n") -- 2.39.5