[Secure-testing-commits] r42427 - bin

Chris Lamb lamby at moszumanska.debian.org
Thu Jun 9 20:35:27 UTC 2016


Author: lamby
Date: 2016-06-09 20:35:27 +0000 (Thu, 09 Jun 2016)
New Revision: 42427

Modified:
   bin/lts-cve-triage.py
Log:
Support excluding as well as filtering

Modified: bin/lts-cve-triage.py
===================================================================
--- bin/lts-cve-triage.py	2016-06-09 20:22:08 UTC (rev 42426)
+++ bin/lts-cve-triage.py	2016-06-09 20:35:27 UTC (rev 42427)
@@ -53,6 +53,8 @@
                     help='Skip updating the tracker data cache')
 parser.add_argument('--filter', nargs='+', choices=[x[0] for x in LIST_NAMES],
                     help='Only report on specified lists')
+parser.add_argument('--exclude', nargs='+', choices=[x[0] for x in LIST_NAMES],
+                    help='Do not report on the specified lists')
 args = parser.parse_args()
 tracker = TrackerData(update_cache=not args.skip_cache_update)
 
@@ -60,7 +62,6 @@
     assert key in [l[0] for l in LIST_NAMES]
     lists[key][pkg].append(issue)
 
-
 for pkg in tracker.iterate_packages():
     if args.skip_dla_needed and pkg in tracker.dla_needed:
         continue
@@ -106,6 +107,8 @@
 for key, desc in LIST_NAMES:
     if args.filter is not None and key not in args.filter:
         continue
+    if args.exclude is not None and key in args.exclude:
+        continue
     if not len(lists[key]):
         continue
     print('{}:'.format(desc))




More information about the Secure-testing-commits mailing list