mirror of
https://git.yoctoproject.org/poky
synced 2026-04-27 21:32:13 +02:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
3d2d75119c
commit
6eb23b311d
@@ -18,7 +18,7 @@
|
||||
</ul>
|
||||
<div class="tab-content">
|
||||
<div class="tab-pane active" id="dependencies">
|
||||
{% ifequal runtime_deps|length 0 %}
|
||||
{% if runtime_deps|length == 0 %}
|
||||
<div class="alert alert-info">
|
||||
<strong>{{package.fullpackagespec}}</strong> has no runtime dependencies.
|
||||
</div>
|
||||
@@ -54,8 +54,8 @@
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
{% endifequal %}
|
||||
{% ifnotequal other_deps|length 0 %}
|
||||
{% endif %}
|
||||
{% if other_deps|length != 0 %}
|
||||
<h3>Other runtime relationships</h3>
|
||||
<table class="table table-bordered table-hover">
|
||||
<thead>
|
||||
@@ -93,7 +93,7 @@
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
{% endifnotequal %}
|
||||
{% endif %}
|
||||
</div> <!-- tab-pane -->
|
||||
</div> <!-- tab-content -->
|
||||
{% endblock tabcontent %}
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
{% include "package_included_tabs.html" with active_tab="dependencies" %}
|
||||
<div class="tab-content">
|
||||
<div class="tab-pane active" id="dependencies">
|
||||
{% ifnotequal runtime_deps|length 0 %}
|
||||
{% if runtime_deps|length != 0 %}
|
||||
<table class="table table-bordered table-hover">
|
||||
<thead>
|
||||
<tr>
|
||||
@@ -48,9 +48,9 @@
|
||||
<div class="alert alert-info">
|
||||
<strong>{{package.fullpackagespec}}</strong> has no runtime dependencies.
|
||||
</div>
|
||||
{% endifnotequal %}
|
||||
{% endif %}
|
||||
|
||||
{% ifnotequal other_deps|length 0 %}
|
||||
{% if other_deps|length != 0 %}
|
||||
<h3>Other runtime relationships</h3>
|
||||
<table class="table table-bordered table-hover">
|
||||
<thead>
|
||||
@@ -103,7 +103,7 @@
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
{% endifnotequal %}
|
||||
{% endif %}
|
||||
</div> <!-- end tab-pane -->
|
||||
</div> <!-- end tab content -->
|
||||
{% endwith %}
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
<div class="tab-content">
|
||||
<div class="tab-pane active" id="brought-in-by">
|
||||
|
||||
{% ifequal reverse_count 0 %}
|
||||
{% if reverse_count == 0 %}
|
||||
<div class="alert alert-info">
|
||||
<strong>{{package.fullpackagespec}}</strong> has no reverse runtime dependencies.
|
||||
</div>
|
||||
@@ -43,7 +43,7 @@
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
{% endifequal %}
|
||||
{% endif %}
|
||||
</div> <!-- end tab-pane -->
|
||||
</div> <!-- end tab content -->
|
||||
{% endwith %}
|
||||
|
||||
@@ -186,9 +186,9 @@
|
||||
<i class="icon-question-sign get-help hover-help" title="{{task.get_outcome_help}}"></i>
|
||||
</td>
|
||||
<td>
|
||||
{% ifnotequal task.sstate_result task.SSTATE_NA %}
|
||||
{% if task.sstate_result != task.SSTATE_NA %}
|
||||
{{task.get_sstate_result_display}}
|
||||
{% endifnotequal %}
|
||||
{% endif %}
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
|
||||
@@ -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 %}
|
||||
<li class="active"><a href="{% url 'target' build.pk t.pk %}">{{t.target}}</a><li>
|
||||
{% else %}
|
||||
<li><a href="{% url 'target' build.pk t.pk %}">{{t.target}}</a><li>
|
||||
{% endifequal %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% endblock %}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user