[Reproducible-commits] [misc] 02/04: clean-notes: handle nicely package only in a suite != unstable from the reproducible json
Mattia Rizzolo
mattia at mapreri.org
Thu Jun 4 02:21:25 UTC 2015
This is an automated email from the git hooks/post-receive script.
mapreri-guest pushed a commit to branch master
in repository misc.
commit f8cc049fa77df5265455813dda9fe6c65e008b9e
Author: Mattia Rizzolo <mattia at mapreri.org>
Date: Thu Jun 4 02:55:38 2015 +0200
clean-notes: handle nicely package only in a suite != unstable from the reproducible json
---
clean-notes | 14 +++++++++++++-
1 file changed, 13 insertions(+), 1 deletion(-)
diff --git a/clean-notes b/clean-notes
index e7d6aa3..b183523 100755
--- a/clean-notes
+++ b/clean-notes
@@ -167,13 +167,25 @@ def query_udd(query):
def load_reproducible_status():
+ status = {}
try:
with open('reproducible.json') as fd:
r = json.load(fd)
except FileNotFoundError:
r = requests.get(reproducible_json)
r = r.json()
- return dict((item['package'], item) for item in r if item['suite'] == 'unstable')
+ for item in r:
+ pkg = item['package']
+ version = item['version']
+ try:
+ if version_compare(str(status[pkg]['version']), str(version)) < 0:
+ status[pkg]['version'] = version
+ status[pkg]['status'] = item['status']
+ except KeyError:
+ status[pkg] = {}
+ status[pkg]['version'] = version
+ status[pkg]['status'] = item['status']
+ return status
def load_notes():
--
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