[PATCH] lts-cve-triage: allow to skip packages already in dla-needed.txt
With lots of packages in dla-needed.txt it's easier to focus on CVEs of
packages that are not being worked on at all.
---
I'd be happy about any comments before applying this.
bin/lts-cve-triage.py | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/bin/lts-cve-triage.py b/bin/lts-cve-triage.py
index b396f80..3531a39 100755
--- a/bin/lts-cve-triage.py
+++ b/bin/lts-cve-triage.py
@@ -15,6 +15,7 @@
# You should have received a copy of the GNU General Public License
# along with this file. If not, see <https://www.gnu.org/licenses/>.
+import argparse
import collections
from tracker_data import TrackerData, RELEASES
@@ -39,6 +40,12 @@ LIST_NAMES = (
lists = collections.defaultdict(lambda: collections.defaultdict(lambda: []))
+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')
+args = parser.parse_args()
+
def add_to_list(key, pkg, issue):
assert key in [l[0] for l in LIST_NAMES]
@@ -46,6 +53,9 @@ def add_to_list(key, pkg, issue):
for pkg in tracker.iterate_packages():
+ if args.skip_dla_needed and pkg in tracker.dla_needed.keys():
+ continue
+
for issue in tracker.iterate_pkg_issues(pkg):
status_in_lts = issue.get_status('lts')
status_in_next_lts = issue.get_status('next_lts')
--
2.1.4
Reply to: