[Reproducible-commits] [notes] 04/04: Add --has-comments and --no-comments filter
Chris Lamb
lamby at moszumanska.debian.org
Sat Feb 7 19:05:03 UTC 2015
This is an automated email from the git hooks/post-receive script.
lamby pushed a commit to branch master
in repository notes.
commit eac683807a6b7b049b15ce9c2635e12c48071b3b
Author: Chris Lamb <lamby at debian.org>
Date: Sat Feb 7 19:04:48 2015 +0000
Add --has-comments and --no-comments filter
---
bin/filter-packages | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/bin/filter-packages b/bin/filter-packages
index fa77a46..1a4975d 100755
--- a/bin/filter-packages
+++ b/bin/filter-packages
@@ -12,6 +12,11 @@ def main():
help="only print packages with bug(s) listed")
parser.add_option('--no-bugs', dest='bugs', action='store_false',
help="only print packages without bug(s) listed")
+ parser.add_option('--has-comments', dest='comments', action='store_true',
+ help="only print packages with comments")
+ parser.add_option('--no-comments', dest='comments', action='store_false',
+ help="only print packages without comments")
+
options, args = parser.parse_args()
if args:
@@ -27,6 +32,9 @@ def main():
if options.bugs is not None and options.bugs ^ ('bugs' in y):
continue
+ if options.comments is not None and options.comments ^ ('comments' in y):
+ continue
+
print x
return 0
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/notes.git
More information about the Reproducible-commits
mailing list