[Reproducible-commits] [misc] 03/05: Make --show= delimiter argument-specific
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 0e672ada596d2d204fc5fdb5d89521508fbe3d77
Author: Chris Lamb <lamby at debian.org>
Date: Thu Aug 11 23:36:57 2016 +0100
Make --show= delimiter argument-specific
---
filter-packages | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/filter-packages b/filter-packages
index 4aa83c0..dce4729 100755
--- a/filter-packages
+++ b/filter-packages
@@ -12,6 +12,9 @@ import optparse
from os.path import join, dirname, abspath
+SHOW = {
+ 'version': ' ',
+}
def main():
status = None
@@ -29,7 +32,7 @@ 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', dest='show', choices=('version',),
+ parser.add_option('--show', dest='show', choices=list(SHOW.keys()),
help="print field")
parser.add_option('--issues-exact', dest='issues_exact', action='store_true',
help="match set of issues exactly")
@@ -80,7 +83,7 @@ def main():
continue
if options.show:
- print("%s %s" % (x, y.get(options.show, '')))
+ print("%s%s%s" % (x, SHOW[options.show], 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