summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarlon Rodriguez Garcia <marlon.rodriguez-garcia@savoirfairelinux.com>2023-10-31 10:24:16 -0400
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-11-08 18:59:02 +0000
commit6eb23b311dadba262a0114abfbb1e164122e3d1b (patch)
tree51c3b17083e75363cc31a5d7f2d999dbe69ec17d
parent3d2d75119cedcbac8f9665c1ddc0b8975a55e12a (diff)
downloadpoky-6eb23b311dadba262a0114abfbb1e164122e3d1b.tar.gz
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 <marlon.rodriguez-garcia@savoirfairelinux.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--bitbake/lib/toaster/toastergui/templates/package_built_dependencies.html8
-rw-r--r--bitbake/lib/toaster/toastergui/templates/package_included_dependencies.html8
-rw-r--r--bitbake/lib/toaster/toastergui/templates/package_included_reverse_dependencies.html4
-rw-r--r--bitbake/lib/toaster/toastergui/templates/recipe.html4
-rw-r--r--bitbake/lib/toaster/toastergui/templates/target.html4
5 files changed, 14 insertions, 14 deletions
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 @@
18 </ul> 18 </ul>
19 <div class="tab-content"> 19 <div class="tab-content">
20 <div class="tab-pane active" id="dependencies"> 20 <div class="tab-pane active" id="dependencies">
21 {% ifequal runtime_deps|length 0 %} 21 {% if runtime_deps|length == 0 %}
22 <div class="alert alert-info"> 22 <div class="alert alert-info">
23 <strong>{{package.fullpackagespec}}</strong> has no runtime dependencies. 23 <strong>{{package.fullpackagespec}}</strong> has no runtime dependencies.
24 </div> 24 </div>
@@ -54,8 +54,8 @@
54 {% endfor %} 54 {% endfor %}
55 </tbody> 55 </tbody>
56 </table> 56 </table>
57 {% endifequal %} 57 {% endif %}
58 {% ifnotequal other_deps|length 0 %} 58 {% if other_deps|length != 0 %}
59 <h3>Other runtime relationships</h3> 59 <h3>Other runtime relationships</h3>
60 <table class="table table-bordered table-hover"> 60 <table class="table table-bordered table-hover">
61 <thead> 61 <thead>
@@ -93,7 +93,7 @@
93 {% endfor %} 93 {% endfor %}
94 </tbody> 94 </tbody>
95 </table> 95 </table>
96 {% endifnotequal %} 96 {% endif %}
97 </div> <!-- tab-pane --> 97 </div> <!-- tab-pane -->
98 </div> <!-- tab-content --> 98 </div> <!-- tab-content -->
99{% endblock tabcontent %} 99{% 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 @@
14 {% include "package_included_tabs.html" with active_tab="dependencies" %} 14 {% include "package_included_tabs.html" with active_tab="dependencies" %}
15 <div class="tab-content"> 15 <div class="tab-content">
16 <div class="tab-pane active" id="dependencies"> 16 <div class="tab-pane active" id="dependencies">
17 {% ifnotequal runtime_deps|length 0 %} 17 {% if runtime_deps|length != 0 %}
18 <table class="table table-bordered table-hover"> 18 <table class="table table-bordered table-hover">
19 <thead> 19 <thead>
20 <tr> 20 <tr>
@@ -48,9 +48,9 @@
48 <div class="alert alert-info"> 48 <div class="alert alert-info">
49 <strong>{{package.fullpackagespec}}</strong> has no runtime dependencies. 49 <strong>{{package.fullpackagespec}}</strong> has no runtime dependencies.
50 </div> 50 </div>
51 {% endifnotequal %} 51 {% endif %}
52 52
53 {% ifnotequal other_deps|length 0 %} 53 {% if other_deps|length != 0 %}
54 <h3>Other runtime relationships</h3> 54 <h3>Other runtime relationships</h3>
55 <table class="table table-bordered table-hover"> 55 <table class="table table-bordered table-hover">
56 <thead> 56 <thead>
@@ -103,7 +103,7 @@
103 {% endfor %} 103 {% endfor %}
104 </tbody> 104 </tbody>
105 </table> 105 </table>
106 {% endifnotequal %} 106 {% endif %}
107 </div> <!-- end tab-pane --> 107 </div> <!-- end tab-pane -->
108 </div> <!-- end tab content --> 108 </div> <!-- end tab content -->
109 {% endwith %} 109 {% 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 @@
15 <div class="tab-content"> 15 <div class="tab-content">
16 <div class="tab-pane active" id="brought-in-by"> 16 <div class="tab-pane active" id="brought-in-by">
17 17
18 {% ifequal reverse_count 0 %} 18 {% if reverse_count == 0 %}
19 <div class="alert alert-info"> 19 <div class="alert alert-info">
20 <strong>{{package.fullpackagespec}}</strong> has no reverse runtime dependencies. 20 <strong>{{package.fullpackagespec}}</strong> has no reverse runtime dependencies.
21 </div> 21 </div>
@@ -43,7 +43,7 @@
43 {% endfor %} 43 {% endfor %}
44 </tbody> 44 </tbody>
45 </table> 45 </table>
46 {% endifequal %} 46 {% endif %}
47 </div> <!-- end tab-pane --> 47 </div> <!-- end tab-pane -->
48 </div> <!-- end tab content --> 48 </div> <!-- end tab content -->
49 {% endwith %} 49 {% 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 @@
186 <i class="icon-question-sign get-help hover-help" title="{{task.get_outcome_help}}"></i> 186 <i class="icon-question-sign get-help hover-help" title="{{task.get_outcome_help}}"></i>
187 </td> 187 </td>
188 <td> 188 <td>
189 {% ifnotequal task.sstate_result task.SSTATE_NA %} 189 {% if task.sstate_result != task.SSTATE_NA %}
190 {{task.get_sstate_result_display}} 190 {{task.get_sstate_result_display}}
191 {% endifnotequal %} 191 {% endif %}
192 </td> 192 </td>
193 193
194 </tr> 194 </tr>
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 @@
8 8
9{% block nav-target %} 9{% block nav-target %}
10 {% for t in build.get_sorted_target_list %} 10 {% for t in build.get_sorted_target_list %}
11 {% ifequal target.pk t.pk %} 11 {% if target.pk == t.pk %}
12 <li class="active"><a href="{% url 'target' build.pk t.pk %}">{{t.target}}</a><li> 12 <li class="active"><a href="{% url 'target' build.pk t.pk %}">{{t.target}}</a><li>
13 {% else %} 13 {% else %}
14 <li><a href="{% url 'target' build.pk t.pk %}">{{t.target}}</a><li> 14 <li><a href="{% url 'target' build.pk t.pk %}">{{t.target}}</a><li>
15 {% endifequal %} 15 {% endif %}
16 {% endfor %} 16 {% endfor %}
17{% endblock %} 17{% endblock %}
18 18