[Reproducible-commits] [notes] 03/04: bin/filter-packages: add --has-bugs and --no-bugs 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 1eba4f5b0a039deb7c99cf939d86183993981f24
Author: Chris Lamb <lamby at debian.org>
Date: Sat Feb 7 19:02:27 2015 +0000
bin/filter-packages: add --has-bugs and --no-bugs filter
---
bin/filter-packages | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/bin/filter-packages b/bin/filter-packages
index 7cd8489..fa77a46 100755
--- a/bin/filter-packages
+++ b/bin/filter-packages
@@ -8,6 +8,10 @@ def main():
parser = optparse.OptionParser()
parser.add_option('--issue', dest='issue', default=None,
help="only print packages with issue ISSUE")
+ parser.add_option('--has-bugs', dest='bugs', action='store_true',
+ 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")
options, args = parser.parse_args()
if args:
@@ -20,6 +24,9 @@ def main():
options.issue not in y.get('issues', ()):
continue
+ if options.bugs is not None and options.bugs ^ ('bugs' 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