[Reproducible-commits] [misc] 02/02: edit notes can force the version, and picks unstable instead of a random distribution

Chris West faux-guest at moszumanska.debian.org
Sat May 2 13:17:50 UTC 2015


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

faux-guest pushed a commit to branch master
in repository misc.

commit 4090aae0dd339aeb533a8da69962cae929cdf91e
Author: Chris West (Faux) <git at goeswhere.com>
Date:   Sat May 2 14:17:45 2015 +0100

    edit notes can force the version, and picks unstable instead of a random distribution
---
 clean-notes | 5 +----
 edit-notes  | 3 +++
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/clean-notes b/clean-notes
index e153b56..3a3de7e 100755
--- a/clean-notes
+++ b/clean-notes
@@ -171,7 +171,7 @@ def load_reproducible_status():
     except FileNotFoundError:
         r = requests.get(reproducible_json)
         r = r.json()
-    return dict((item['package'], item) for item in r)
+    return dict((item['package'], item) for item in r if item['suite'] == 'unstable')
 
 
 def load_notes():
@@ -189,9 +189,6 @@ def check_notes_validity(notes, testedpkgs):
             failed = True
             print('CRITICAL: the package ' + pkg +
                   ' was never tested. Maybe it\'s misspelled?')
-    if failed:
-        print('Aborting, please fix the notes file')
-        sys.exit(1)
 
 
 def check_bugs(notes):
diff --git a/edit-notes b/edit-notes
index 2e81383..75cd150 100755
--- a/edit-notes
+++ b/edit-notes
@@ -8,6 +8,7 @@ clean = __import__('clean-notes')
 parser = argparse.ArgumentParser()
 parser.add_argument('-f', '--fix-note', action='append', default=[])
 parser.add_argument('-a', '--add-note', action='append', default=[])
+parser.add_argument('-v', '--take-version', action='store_true')
 parser.add_argument('packages', nargs='*')
 args = parser.parse_args()
 
@@ -27,6 +28,8 @@ if __name__ == '__main__':
         except KeyError:
             status = testedpkgs[package]
             data = notes[package] = { 'version': status['version'] }
+        if args.take_version:
+            data['version'] = testedpkgs[package]['version']
 
         for fix in args.fix_note:
             if testedpkgs.get(package, {}).get('status', False) == 'reproducible':

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