From 6eb23b311dadba262a0114abfbb1e164122e3d1b Mon Sep 17 00:00:00 2001 From: Marlon Rodriguez Garcia Date: Tue, 31 Oct 2023 10:24:16 -0400 Subject: bitbake: toaster: replace deprecated tags ifequal and ifnotequal Tags ifequal and ifnotequal are deprecated and were removed on version 3.1 https://django.readthedocs.io/en/stable/releases/3.1.html#deprecated-features-3-1 (Bitbake rev: d6dd2d091c18a888a237d986ae2bd6dae068be5a) Signed-off-by: Marlon Rodriguez Garcia Signed-off-by: Richard Purdie --- .../toaster/toastergui/templates/package_built_dependencies.html | 8 ++++---- .../toastergui/templates/package_included_dependencies.html | 8 ++++---- .../templates/package_included_reverse_dependencies.html | 4 ++-- bitbake/lib/toaster/toastergui/templates/recipe.html | 4 ++-- bitbake/lib/toaster/toastergui/templates/target.html | 4 ++-- 5 files changed, 14 insertions(+), 14 deletions(-) (limited to 'bitbake') diff --git a/bitbake/lib/toaster/toastergui/templates/package_built_dependencies.html b/bitbake/lib/toaster/toastergui/templates/package_built_dependencies.html index a5d5893571..2493954deb 100644 --- a/bitbake/lib/toaster/toastergui/templates/package_built_dependencies.html +++ b/bitbake/lib/toaster/toastergui/templates/package_built_dependencies.html @@ -18,7 +18,7 @@
- {% ifequal runtime_deps|length 0 %} + {% if runtime_deps|length == 0 %}
{{package.fullpackagespec}} has no runtime dependencies.
@@ -54,8 +54,8 @@ {% endfor %} - {% endifequal %} - {% ifnotequal other_deps|length 0 %} + {% endif %} + {% if other_deps|length != 0 %}

Other runtime relationships

@@ -93,7 +93,7 @@ {% endfor %}
- {% endifnotequal %} + {% endif %}
{% endblock tabcontent %} diff --git a/bitbake/lib/toaster/toastergui/templates/package_included_dependencies.html b/bitbake/lib/toaster/toastergui/templates/package_included_dependencies.html index 95e56ded26..1f5ed6d913 100644 --- a/bitbake/lib/toaster/toastergui/templates/package_included_dependencies.html +++ b/bitbake/lib/toaster/toastergui/templates/package_included_dependencies.html @@ -14,7 +14,7 @@ {% include "package_included_tabs.html" with active_tab="dependencies" %}
- {% ifnotequal runtime_deps|length 0 %} + {% if runtime_deps|length != 0 %} @@ -48,9 +48,9 @@
{{package.fullpackagespec}} has no runtime dependencies.
- {% endifnotequal %} + {% endif %} - {% ifnotequal other_deps|length 0 %} + {% if other_deps|length != 0 %}

Other runtime relationships

@@ -103,7 +103,7 @@ {% endfor %}
- {% endifnotequal %} + {% endif %}
{% endwith %} diff --git a/bitbake/lib/toaster/toastergui/templates/package_included_reverse_dependencies.html b/bitbake/lib/toaster/toastergui/templates/package_included_reverse_dependencies.html index fb310c7fc7..dae4549e21 100644 --- a/bitbake/lib/toaster/toastergui/templates/package_included_reverse_dependencies.html +++ b/bitbake/lib/toaster/toastergui/templates/package_included_reverse_dependencies.html @@ -15,7 +15,7 @@
- {% ifequal reverse_count 0 %} + {% if reverse_count == 0 %}
{{package.fullpackagespec}} has no reverse runtime dependencies.
@@ -43,7 +43,7 @@ {% endfor %} - {% endifequal %} + {% endif %}
{% endwith %} diff --git a/bitbake/lib/toaster/toastergui/templates/recipe.html b/bitbake/lib/toaster/toastergui/templates/recipe.html index 3f76e656fe..4b5301b548 100644 --- a/bitbake/lib/toaster/toastergui/templates/recipe.html +++ b/bitbake/lib/toaster/toastergui/templates/recipe.html @@ -186,9 +186,9 @@ - {% ifnotequal task.sstate_result task.SSTATE_NA %} + {% if task.sstate_result != task.SSTATE_NA %} {{task.get_sstate_result_display}} - {% endifnotequal %} + {% endif %} diff --git a/bitbake/lib/toaster/toastergui/templates/target.html b/bitbake/lib/toaster/toastergui/templates/target.html index 1924a0dad7..d5f60e77a8 100644 --- a/bitbake/lib/toaster/toastergui/templates/target.html +++ b/bitbake/lib/toaster/toastergui/templates/target.html @@ -8,11 +8,11 @@ {% block nav-target %} {% for t in build.get_sorted_target_list %} - {% ifequal target.pk t.pk %} + {% if target.pk == t.pk %}
  • {{t.target}}
  • {% else %}
  • {{t.target}}
  • - {% endifequal %} + {% endif %} {% endfor %} {% endblock %} -- cgit v1.2.3-54-g00ecf