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
commitd3c3bfebd345dc089847b73fb30d2fbb0c27db78 (patch)
treee356de9e9dcc5e12041a90f69219c2940e3bcec7 /bin/lts-cve-triage.py
parent4b27e16d6bca198f54b3e9df407e37330ddd59b0 (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