[Qa-jenkins-scm] [jenkins.debian.net] 01/01: reproducible Debian: more mampers (tm) for unicode date from popcon for the notes job

Holger Levsen holger at layer-acht.org
Sat Sep 24 12:11:24 UTC 2016


This is an automated email from the git hooks/post-receive script.

holger pushed a commit to branch master
in repository jenkins.debian.net.

commit 6dd841dd4025a179aad73c83d14fe336b6bbe903
Author: Holger Levsen <holger at layer-acht.org>
Date:   Sat Sep 24 14:11:17 2016 +0200

    reproducible Debian: more mampers (tm) for unicode date from popcon for the notes job
---
 bin/reproducible_html_notes.py | 19 +++++++++++--------
 1 file changed, 11 insertions(+), 8 deletions(-)

diff --git a/bin/reproducible_html_notes.py b/bin/reproducible_html_notes.py
index 7d1010f..63e94ad 100755
--- a/bin/reproducible_html_notes.py
+++ b/bin/reproducible_html_notes.py
@@ -467,14 +467,17 @@ if __name__ == '__main__':
     issues = load_issues()
     iterate_over_notes(notes)
     iterate_over_issues(issues)
-    index_issues(issues, OrderedDict([
-        ("Sum of packages' popcon scores",
-         lambda l: sum(popcon.package(*l).values())),
-        ("Sum of square-roots of packages' popcon scores",
-         lambda l: int(sum(map(sqrt, popcon.package(*l).values())))),
-        ("Number of packages",
-         len),
-    ]))
+    try:
+        index_issues(issues, OrderedDict([
+            ("Sum of packages' popcon scores",
+             lambda l: sum(popcon.package(*l).values())),
+            ("Sum of square-roots of packages' popcon scores",
+             lambda l: int(sum(map(sqrt, popcon.package(*l).values())))),
+            ("Number of packages",
+             len),
+        ]))
+    except UnicodeDecodeError:
+        pass
     purge_old_notes(notes)
     purge_old_issues(issues)
     gen_packages_html([Package(x) for x in notes])

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/qa/jenkins.debian.net.git



More information about the Qa-jenkins-scm mailing list