Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

security web: add esm-infra-legacy pockets WD-17330 WD-19534 #14806

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions templates/security/notices/usn.html
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@ <h5>Ubuntu {{ version }}</h5>
{% if package.pocket == "esm-infra" %}
Available with <a href="/pro">Ubuntu Pro</a>
{% endif %}
{% if package.pocket == "esm-infra-legacy" %}
Available with <a href="/pro">Ubuntu Pro</a>
{% endif %}
{% if package.pocket == "esm-apps" %}
Available with <a href="/pro">Ubuntu Pro</a>
{% endif %}
Expand Down
9 changes: 9 additions & 0 deletions webapp/security/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -497,6 +497,7 @@ def cve(cve_id):
for status in package["statuses"]:
if (
status["pocket"] == "esm-infra"
or status["pocket"] == "esm-infra-legacy"
or status["pocket"] == "esm-apps"
):
cve["expanded_coverage"] = True
Expand Down Expand Up @@ -628,6 +629,14 @@ def cve(cve_id):
"label": "Ubuntu Pro",
"href": "/pro",
},
"esm-infra-legacy": {
"text": (
"Fix available with Ubuntu Pro with "
"Legacy support add-on."
),
"label": "Ubuntu Pro",
"href": "/pro",
},
"esm-apps": {
"text": (
"Fix available with Ubuntu Pro via ESM Apps. "
Expand Down
Loading