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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user