From e2178f2f7a54ef664f474ba3fe678f991bd39c31 Mon Sep 17 00:00:00 2001 From: Chris Lamb Date: Tue, 5 Jan 2016 14:21:04 +0000 Subject: Add ability to filter output. git-svn-id: svn+ssh://svn.debian.org/svn/secure-testing@38712 e39458fd-73e7-0310-bf30-c45bca0a0e42 --- bin/lts-cve-triage.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'bin/lts-cve-triage.py') diff --git a/bin/lts-cve-triage.py b/bin/lts-cve-triage.py index 8c528b8f19..bd2478208a 100755 --- a/bin/lts-cve-triage.py +++ b/bin/lts-cve-triage.py @@ -43,6 +43,8 @@ parser = argparse.ArgumentParser( description='Find CVEs to triage') parser.add_argument('--skip-dla-needed', action='store_true', help='Skip packages already in dla-needed.txt') +parser.add_argument('--filter', nargs='+', choices=[x[0] for x in LIST_NAMES], + help='Only report on specified lists') args = parser.parse_args() tracker = TrackerData(update_cache=True) @@ -84,6 +86,8 @@ for pkg in tracker.iterate_packages(): add_to_list('unexpected_nodsa', pkg, issue) for key, desc in LIST_NAMES: + if args.filter is not None and key not in args.filter: + continue if not len(lists[key]): continue print('{}:'.format(desc)) -- cgit v1.2.3