1
0
mirror of https://git.yoctoproject.org/meta-arm synced 2026-07-16 03:47:19 +00:00

scripts/machine-summary: show patch count in the overview

Instead of simply adding a tag saying "Patched", include the patch count
and make a judgement call on whether the patches are "safe" or not. For
example, patches which are entirely backports or inappropriate are
"safe", pending and denied patches are not.

Signed-off-by: Ross Burton <ross.burton@arm.com>
This commit is contained in:
Ross Burton
2022-01-25 12:54:25 +00:00
parent 38cd9b6f59
commit 72bb1adf3f
2 changed files with 18 additions and 1 deletions
+7 -1
View File
@@ -26,7 +26,13 @@
{% if details.patches or details.needs_update %}
<br>
{% if details.patches %}
<span class="tag is-info">Patched</span>
<span class="tag {{ "is-info" if details.patches_safe else "is-danger" }}">
{% trans count=details.patches|length %}
{{ count }} Patch
{% pluralize %}
{{ count }} Patches
{% endtrans %}
</span>
{% endif %}
{% if details.needs_update %}
<span class="tag is-danger">Upgrade</span>