Merge ~pfsmorigo/ubuntu-cve-tracker:pfsmorigo/eol_release_status into ubuntu-cve-tracker:master

Proposed by Paulo Flabiano Smorigo
Status: Merged
Merged at revision: 3174299beb9ecd1d4ef9040e5606280f5804ab47
Proposed branch: ~pfsmorigo/ubuntu-cve-tracker:pfsmorigo/eol_release_status
Merge into: ubuntu-cve-tracker:master
Diff against target: 18 lines (+6/-1)
1 file modified
scripts/active_edit (+6/-1)
Reviewer Review Type Date Requested Status
Steve Beattie Approve
Review via email: mp+426508@code.launchpad.net

Description of the change

This change will explicitly give the releases for source_map in order to get the status for all releases used for CVE files. Currently, the release list will be all supported (bionic, focal, impish, jammy, kinetic) + active esm ones (xenial, trusty).

As a test, running ./scripts/active_edit -e -p mediawiki -c CVE-2022-34912

Before:
trusty_mediawiki: DNE
xenial_mediawiki: DNE

After:
trusty_mediawiki: ignored (out of standard support)
xenial_mediawiki: DNE

To post a comment you must log in.
Revision history for this message
Mark Esler (eslerm) wrote :

the diff LGTM

Revision history for this message
Steve Beattie (sbeattie) wrote :

Also LGTM, thanks for the followup commit as well.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/scripts/active_edit b/scripts/active_edit
2index ef3627b..a85f279 100755
3--- a/scripts/active_edit
4+++ b/scripts/active_edit
5@@ -34,7 +34,12 @@ parser.add_option("-P", "--public", help="Record date the CVE went public", meta
6 parser.add_option("-C", "--cvss", help="CVSS3.1 rating", metavar="CVSS:3.1/AV:_/AC:_/PR:_/UI:_/S:_/C:_/I:_/A:_")
7 (options, args) = parser.parse_args()
8
9-source = source_map.load()
10+
11+source_releases = []
12+for release in cve_lib.all_releases:
13+ if cve_lib.is_active_esm_release(release) or cve_lib.is_active_release(release):
14+ source_releases.append(release)
15+source = source_map.load(releases=source_releases, skip_eol_releases=False)
16
17 def pkg_in_rel(pkg,rel):
18 if rel in ['upstream']:

Subscribers

People subscribed via source and target branches