[Reproducible-commits] [misc] 04/04: cater for the possibility that notes come without version

Johannes Schauer josch at moszumanska.debian.org
Thu Feb 12 07:18:19 UTC 2015


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

josch pushed a commit to branch master
in repository misc.

commit 97db80c0d1f03c12fcbeab0d36489f8284edf6e5
Author: josch <j.schauer at email.de>
Date:   Thu Feb 12 08:15:20 2015 +0100

    cater for the possibility that notes come without version
---
 clean-notes | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/clean-notes b/clean-notes
index a9c7382..98c3e2c 100755
--- a/clean-notes
+++ b/clean-notes
@@ -220,19 +220,19 @@ def find_old_notes(testedpkgs, notes):
             continue
         for item in testedpkgs:
             if item['package'] == pkg and \
-               item['version'] == notes[pkg]['version'] and \
+               item['version'] == notes[pkg].get('version') and \
                item['status'] == 'reproducible'and \
                'fixed-magically' not in args.disable:
                 print("The package " + pkg + " has a note for the version "
                       + item['version'] + " but that version is reproducible")
             if item['package'] == pkg and \
-               item['status'] == 'reproducible' and \
+               item['status'] == 'reproducible' and notes[pkg].get('version') and \
                apt_pkg.version_compare(str(item['version']),
                                        str(notes[pkg]['version'])) > 0:
                 print("The package " + pkg +
                       " is now reproducible but still listed in the notes")
                 toremove.append(pkg)
-            if item['package'] == pkg and \
+            if item['package'] == pkg and notes[pkg].get('version') and \
                apt_pkg.version_compare(str(item['version']),
                                        str(notes[pkg]['version'])) > 0:
                 if 'new-tested-version' not in args.disable:

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