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
commit5d3154f4814aadfabbe3f8f2415fad1e1ecb3a40 (patch)
treea59558435a4f6e04b7cdc96efb13e516f8c2b589 /bin/lts-cve-triage.py
parentba0c2c2832a7dfe675b759e8e082245632df526b (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