summaryrefslogtreecommitdiffstats
path: root/bin/reproducible_html_notes.py
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2016-09-24 14:11:17 +0200
committerHolger Levsen <holger@layer-acht.org>2016-09-24 14:11:17 +0200
commit6dd841dd4025a179aad73c83d14fe336b6bbe903 (patch)
tree980e495c46141cf674aeb40d97187a02235a4ba8 /bin/reproducible_html_notes.py
parenta90056a2dd0cafe37baea1cacfc37f091b2be8e6 (diff)
downloadjenkins.debian.net-6dd841dd4025a179aad73c83d14fe336b6bbe903.tar.xz
reproducible Debian: more mampers (tm) for unicode date from popcon for the notes job
Diffstat (limited to 'bin/reproducible_html_notes.py')
-rwxr-xr-xbin/reproducible_html_notes.py19
1 files changed, 11 insertions, 8 deletions
diff --git a/bin/reproducible_html_notes.py b/bin/reproducible_html_notes.py
index 7d1010f6..63e94adf 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])