summaryrefslogtreecommitdiffstats
path: root/bin/lts-cve-triage.py
diff options
context:
space:
mode:
authorChris Lamb <lamby@debian.org>2016-01-05 14:21:04 +0000
committerChris Lamb <lamby@debian.org>2016-01-05 14:21:04 +0000
commite2178f2f7a54ef664f474ba3fe678f991bd39c31 (patch)
tree14783a9b7dbf1e469000bbc5164552efcc8215b9 /bin/lts-cve-triage.py
parent2141d98cf482a3dda9f54cf4fd89b6b345ac836b (diff)
Add ability to filter output.
git-svn-id: svn+ssh://svn.debian.org/svn/secure-testing@38712 e39458fd-73e7-0310-bf30-c45bca0a0e42
Diffstat (limited to 'bin/lts-cve-triage.py')
-rwxr-xr-xbin/lts-cve-triage.py4
1 files changed, 4 insertions, 0 deletions
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))

© 2014-2024 Faster IT GmbH | imprint | privacy policy