All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] toaster: Fix comparison in recipe template
@ 2018-08-20  7:51 Karsten Strand
  0 siblings, 0 replies; only message in thread
From: Karsten Strand @ 2018-08-20  7:51 UTC (permalink / raw)
  To: bitbake-devel

Use == instead of = when comparing task outcome to OUTCOME_FAILED.

Prior to this fix the recipe template would cause a TemplateSyntaxError
exception.
---
 lib/toaster/toastergui/templates/recipe.html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/toaster/toastergui/templates/recipe.html b/lib/toaster/toastergui/templates/recipe.html
index bf2cd71..3f76e65 100644
--- a/lib/toaster/toastergui/templates/recipe.html
+++ b/lib/toaster/toastergui/templates/recipe.html
@@ -176,7 +176,7 @@
                     <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
-- 
2.7.4



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2018-08-21  0:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-20  7:51 [PATCH] toaster: Fix comparison in recipe template Karsten Strand

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.