[Reproducible-commits] [notes] 02/04: bin/filter-packages: support filtering by issue
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 385cc666932c3886b3fbbdddcd38ea73a1adcd68
Author: Chris Lamb <lamby at debian.org>
Date: Sat Feb 7 18:46:17 2015 +0000
bin/filter-packages: support filtering by issue
---
bin/filter-packages | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/bin/filter-packages b/bin/filter-packages
index 7501244..7cd8489 100755
--- a/bin/filter-packages
+++ b/bin/filter-packages
@@ -6,6 +6,8 @@ import optparse
def main():
parser = optparse.OptionParser()
+ parser.add_option('--issue', dest='issue', default=None,
+ help="only print packages with issue ISSUE")
options, args = parser.parse_args()
if args:
@@ -14,6 +16,10 @@ def main():
packages = yaml.safe_load(open('./packages.yml'))
for x, y in sorted(packages.iteritems()):
+ if options.issue is not None and \
+ options.issue not in y.get('issues', ()):
+ 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