[Reproducible-commits] [misc] 01/01: use argparse as it's there already

Chris West faux-guest at moszumanska.debian.org
Fri Jan 1 16:17:01 UTC 2016


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

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

commit 3785b3cdb07dc1a615cf7139c1de017da42ac34b
Author: Chris West (Faux) <git at goeswhere.com>
Date:   Fri Jan 1 16:16:58 2016 +0000

    use argparse as it's there already
---
 edit-notes | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/edit-notes b/edit-notes
index 6360290..e394a2a 100755
--- a/edit-notes
+++ b/edit-notes
@@ -13,7 +13,7 @@ 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')
-parser.add_argument('-b', '--add-bug', action='append', default=[])
+parser.add_argument('-b', '--add-bug', type=int, action='append', default=[])
 parser.add_argument('-d', '--fix-deterministic', action='store_true')
 parser.add_argument('-u', dest='remove', action='store_true',
                     help='remove the whole note block')
@@ -72,7 +72,7 @@ if __name__ == '__main__':
                 if dst not in data:
                     data[dst] = []
                 if x not in data[dst]:
-                    data[dst].append(int(x) if 'bugs' == dst else x)
+                    data[dst].append(x)
 
         if args.set_comment:
             data['comments'] = args.set_comment

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