[Reproducible-commits] [misc] 02/05: Rewrite --show-version as --show=version for next commits.
Chris Lamb
chris at chris-lamb.co.uk
Thu Aug 11 22:40:18 UTC 2016
This is an automated email from the git hooks/post-receive script.
lamby pushed a commit to branch master
in repository misc.
commit 7de770ab75e8a6b3b1a1e6b67836c3c4ef4d539c
Author: Chris Lamb <lamby at debian.org>
Date: Thu Aug 11 23:33:21 2016 +0100
Rewrite --show-version as --show=version for next commits.
---
filter-packages | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/filter-packages b/filter-packages
index 570959b..4aa83c0 100755
--- a/filter-packages
+++ b/filter-packages
@@ -29,8 +29,8 @@ def main():
help="only print packages with comments")
parser.add_option('--no-comments', dest='comments', action='store_false',
help="only print packages without comments")
- parser.add_option('--show-version', dest='show_version', action='store_true',
- help="print package version")
+ parser.add_option('--show', dest='show', choices=('version',),
+ help="print field")
parser.add_option('--issues-exact', dest='issues_exact', action='store_true',
help="match set of issues exactly")
parser.add_option('--filter-ftbfs', dest='filter_ftbfs', action='store_true',
@@ -79,8 +79,8 @@ def main():
if status.get(x, {}).get('status', None) != 'FTBFS':
continue
- if options.show_version:
- print("%s %s" % (x, y.get('version', '')))
+ if options.show:
+ print("%s %s" % (x, y.get(options.show, '')))
continue
print(x)
--
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