]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
bitbake: toaster: Fix comparison in recipe template
authorKarsten Strand <karstens@graphcore.ai>
Mon, 20 Aug 2018 07:51:00 +0000 (09:51 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 23 Aug 2018 07:50:23 +0000 (08:50 +0100)
Use == instead of = when comparing task outcome to OUTCOME_FAILED.

Prior to this fix the recipe template would cause a TemplateSyntaxError
exception.

(Bitbake rev: a53ffec4ed3d0f9221bca398e20e8f480fb2b325)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
bitbake/lib/toaster/toastergui/templates/recipe.html

index bf2cd7169ac1737b5c5ad532a4444f94ab45df7e..3f76e656fe26ec788e90e9b75d069462eea848e4 100644 (file)
                     <td>{{task.get_executed_display}}</td>
 
                     <td>{{task.get_outcome_display}} 
-                        {% if task.outcome = task.OUTCOME_FAILED %}
+                        {% if task.outcome == task.OUTCOME_FAILED %}
                             <a href="{% url 'build_artifact' build.pk "tasklogfile" task.pk %}">
                                 <span class="glyphicon glyphicon-download-alt
                                     get-help" title="Download task log