[Reproducible-commits] [misc] 01/01: filter-packages: add --show-version flag

Chris Lamb lamby at moszumanska.debian.org
Tue Feb 10 02:16:35 UTC 2015


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

lamby pushed a commit to branch master
in repository misc.

commit f9f65e0d35e260127f7ef4c92fddc4c1b0b61bd6
Author: Chris Lamb <lamby at debian.org>
Date:   Tue Feb 10 02:07:01 2015 +0000

    filter-packages: add --show-version flag
---
 filter-packages | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/filter-packages b/filter-packages
index 9cf57a6..cc20edf 100755
--- a/filter-packages
+++ b/filter-packages
@@ -24,6 +24,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")
 
     options, args = parser.parse_args()
 
@@ -49,6 +51,10 @@ def main():
         if options.comments is not None and options.comments ^ ('comments' in y):
             continue
 
+        if options.show_version:
+            print "%s %s" % (x, y.get('version', ''))
+            continue
+
         print x
 
     return 0

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