From 3c0dc3c9acf074bb867353b093ebded3fa94c9cc Mon Sep 17 00:00:00 2001 From: Sylvain Beucler Date: Thu, 14 Apr 2022 16:18:11 +0200 Subject: lts-cve-triage: minor code clarification --- bin/lts-cve-triage.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bin') diff --git a/bin/lts-cve-triage.py b/bin/lts-cve-triage.py index 8da8984b1d..bda1606819 100755 --- a/bin/lts-cve-triage.py +++ b/bin/lts-cve-triage.py @@ -118,7 +118,7 @@ for pkg in tracker.iterate_packages(): if status_in_lts.status in ('not-affected', 'resolved'): continue - if status_in_lts.status == 'open': + elif status_in_lts.status == 'open': if re.fullmatch(unsupported_re, pkg): add_to_list('triage_end_of_life', pkg, issue) continue @@ -154,7 +154,7 @@ for pkg in tracker.iterate_packages(): if status_in_next_lts.status == 'resolved': add_to_list('possible_easy_fixes', pkg, issue) - if status_in_lts.status == 'ignored': + elif status_in_lts.status == 'ignored': if (status_in_lts.reason == 'no-dsa' and status_in_next_lts.status == 'open'): add_to_list('unexpected_nodsa', pkg, issue) -- cgit v1.2.3