[Reproducible-commits] [misc] 03/04: clean-notes: do not fail when there is an untested/not-existant package

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 fe0304481528c5c4730f73c4f3fcabc74de6fc52
Author: Mattia Rizzolo <mattia at mapreri.org>
Date:   Thu Jun 4 03:02:53 2015 +0200

    clean-notes: do not fail when there is an untested/not-existant package
---
 clean-notes | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/clean-notes b/clean-notes
index b183523..78edc9c 100755
--- a/clean-notes
+++ b/clean-notes
@@ -245,7 +245,15 @@ def find_old_notes(testedpkgs, notes):
            'missing-version' not in args.disable:
             print("There is no version set for the package " + pkg)
             continue
-        item = testedpkgs[pkg]
+        try:
+            item = testedpkgs[pkg]
+        except KeyError:
+            # this is due to https://anonscm.debian.org/cgit/qa/jenkins.debian.net.git/commit/?id=27530903da1ce04e2e9c8089a9ae7b4413f75d9d
+            # and later commits to that file, otherwise this would be
+            # quite a issue
+            if args.verbose:
+                print(pkg + ' was not tested. Skipping cruft check.')
+            continue
         if item['version'] == notes[pkg].get('version') and \
            item['status'] == 'reproducible' and \
            'fixed-magically' 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