[Reproducible-commits] [misc] 01/01: edit-notes can remove unfixed issues
Chris West
faux-guest at moszumanska.debian.org
Sun Jul 12 20:32:24 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 e69e37fc3d050a546492253a2624313bb85c66dd
Author: Chris West (Faux) <git at goeswhere.com>
Date: Sun Jul 12 21:32:21 2015 +0100
edit-notes can remove unfixed issues
---
edit-notes | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/edit-notes b/edit-notes
index 16d3174..9b14d57 100755
--- a/edit-notes
+++ b/edit-notes
@@ -8,6 +8,7 @@ clean = __import__('clean-notes')
parser = argparse.ArgumentParser()
parser.add_argument('--verbose', action='store_true')
parser.add_argument('-f', '--fix-note', action='append', default=[])
+parser.add_argument('-r', '--remove-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('-c', '--set-comment')
@@ -21,6 +22,9 @@ with open('issues.yml') as fd:
if __name__ == '__main__':
to_fix = set(args.fix_note)
+ to_remove = set(args.remove_note)
+ to_fix.update(to_remove)
+
notes = clean.load_notes()
testedpkgs = clean.load_reproducible_status()
@@ -50,7 +54,7 @@ if __name__ == '__main__':
data['version'] = testedpkgs[package]['version']
for fix in to_fix:
- if testedpkgs.get(package, {}).get('status', False) == 'reproducible':
+ if fix in to_remove or testedpkgs.get(package, {}).get('status', False) == 'reproducible':
package_issues = data.get('issues', [])
if fix in package_issues:
if args.verbose:
--
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