From 3fceb4e21a287674f166442ed8f5e563010710ff Mon Sep 17 00:00:00 2001 From: Anton Gladky Date: Thu, 21 Apr 2022 08:23:59 +0200 Subject: LTS: triage asterisk --- bin/lts-cve-triage.py | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/lts-cve-triage.py b/bin/lts-cve-triage.py index bda1606819..05ec383b0b 100755 --- a/bin/lts-cve-triage.py +++ b/bin/lts-cve-triage.py @@ -64,6 +64,9 @@ LIST_NAMES = ( ('triage_possible_easy_fixes', ('Issues not yet triaged for {lts}, but already fixed in {next_lts}') .format(**RELEASES)), + ('triage_possible_missed_fixes', + ('Issues postponed for {lts}, but fixed in {next_lts} via DSA or point releases') + .format(**RELEASES)), ('triage_other_not_triaged_in_next_lts', ('Other issues to triage for {lts} (not yet triaged for {next_lts})') .format(**RELEASES)), @@ -153,11 +156,20 @@ for pkg in tracker.iterate_packages(): if status_in_next_lts.status == 'resolved': add_to_list('possible_easy_fixes', pkg, issue) - + # //// 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) + elif (status_in_lts.reason == 'no-dsa' and + status_in_next_lts.status == 'resolved'): + # include fixes from DSA or stable/oldstable point releases + # exclude issues explicitly ignored, and old fixes back in unstable + nodsa_reason = issue.data['releases'][RELEASES['lts']]['nodsa_reason'] + fixed_version = issue.data['releases'][RELEASES['next_lts']]['fixed_version'] + if (nodsa_reason != 'ignored' and + ('~deb' in fixed_version or '+deb' in fixed_version)): + add_to_list('triage_possible_missed_fixes', pkg, issue) elif status_in_lts.reason == 'undetermined': add_to_list('undetermined', pkg, issue) -- cgit v1.2.3