[Secure-testing-commits] r38712 - bin

Chris Lamb lamby at moszumanska.debian.org
Tue Jan 5 14:21:04 UTC 2016


Author: lamby
Date: 2016-01-05 14:21:04 +0000 (Tue, 05 Jan 2016)
New Revision: 38712

Modified:
   bin/lts-cve-triage.py
Log:
Add ability to filter output.

Modified: bin/lts-cve-triage.py
===================================================================
--- bin/lts-cve-triage.py	2016-01-05 10:18:53 UTC (rev 38711)
+++ bin/lts-cve-triage.py	2016-01-05 14:21:04 UTC (rev 38712)
@@ -43,6 +43,8 @@
     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 @@
             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))




More information about the Secure-testing-commits mailing list