[Reproducible-commits] [misc] 01/02: clean-notes: handle even more nicely packages with the same version in more suite but different reproducibly status (e.g. prefer the unstable status

Mattia Rizzolo mattia at mapreri.org
Thu Jun 4 02:23:27 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 c8ecb4fb6b4395fe0cdb9ecad0a9f2aa60c0b31b
Author: Mattia Rizzolo <mattia at mapreri.org>
Date:   Thu Jun 4 04:22:41 2015 +0200

    clean-notes: handle even more nicely packages with the same version in more suite but different reproducibly status (e.g. prefer the unstable status
---
 clean-notes | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/clean-notes b/clean-notes
index 6fcdd1d..2cf9334 100755
--- a/clean-notes
+++ b/clean-notes
@@ -178,14 +178,21 @@ def load_reproducible_status():
         r = r.json()
     for item in r:
         pkg = item['package']
-        version = item['version']
+        version = str(item['version'])
         try:
-            if version_compare(str(status[pkg]['version']), str(version)) < 0:
+            if version_compare(str(status[pkg]['version']), version) < 0:
                 status[pkg]['version'] = version
+                status[pkg]['suite'] = item['suite']
                 status[pkg]['status'] = item['status']
+            elif version_compare(str(status[pkg]['version']), version) == 0:
+                if item['suite'] == 'unstable':
+                    status[pkg]['version'] = version
+                    status[pkg]['suite'] = item['suite']
+                    status[pkg]['status'] = item['status']
         except KeyError:
             status[pkg] = {}
             status[pkg]['version'] = version
+            status[pkg]['suite'] = item['suite']
             status[pkg]['status'] = item['status']
     return status
 

-- 
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