[Reproducible-commits] [misc] 01/01: reports: newly-reproducible: group arches together if they have the same reason
Ximin Luo
infinity0 at debian.org
Mon May 16 18:27:48 UTC 2016
This is an automated email from the git hooks/post-receive script.
infinity0 pushed a commit to branch master
in repository misc.
commit bdb60f383733389ed5843cefe03c280bb9319a01
Author: Ximin Luo <infinity0 at debian.org>
Date: Mon May 16 20:26:19 2016 +0200
reports: newly-reproducible: group arches together if they have the same reason
- this does not affect bin/get-latest-data; the link output is still the same
- also fix week_1 to be UTC to be consistent with bin/get-latest-data
---
reports/bin/newly-reproducible | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/reports/bin/newly-reproducible b/reports/bin/newly-reproducible
index 1fa7815..74a64d1 100755
--- a/reports/bin/newly-reproducible
+++ b/reports/bin/newly-reproducible
@@ -11,7 +11,7 @@ import sqlite3
import time
import getopt
-week_1 = 1430604000 # May 3 2015, 00:00
+week_1 = 1430611200 # May 3 2015, 00:00 UTC, Sunday
opts, args = getopt.getopt(sys.argv[1:], 'w:')
query_add = ''
@@ -65,6 +65,11 @@ for name, reproducible_version, architecture, suite, reproducible_build_time in
else:
print('UNKNOWN STATUS %s' % status)
+now_reproducible_by_arch={}
for package_id in sorted(now_reproducible.keys()):
name, architecture = package_id.split('/')
- print("[[!pkg %s]] is reproducible %s on %s" % (name, now_reproducible[package_id], architecture))
+ now_reproducible_by_arch.setdefault(name, {}).setdefault(now_reproducible[package_id], []).append(architecture)
+
+for name, details in sorted(now_reproducible_by_arch.items()):
+ detail_string = "; ".join("on %s %s" % (", ".join(v), k) for k, v in details.items())
+ print("[[!pkg %s]] is reproducible %s." % (name, detail_string))
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/misc.git
More information about the Reproducible-commits
mailing list