From 3c641e7238667d941b13aca9c5f3e392085f7a9f Mon Sep 17 00:00:00 2001 From: Dave Lerner Date: Thu, 5 Mar 2015 17:01:55 -0600 Subject: bitbake: toaster: cached outcome download button When a task is executed successfully without using saved-state cache, then a button appears allowing the user to download the log file for that task. This commit allows the user to download the log file for a task that is completed by unpacking data from the saved-state cache, a task with outcome 'Cached'. The same button 'Download task log' is shown, which when pressed downloads the '_setscene' log file for that task. [YOCTO #7379] (Bitbake rev: d4ac60c41f1ee9a8c59f9ede5b0948303f793afa) Signed-off-by: Dave Lerner Signed-off-by: Richard Purdie --- bitbake/lib/toaster/toastergui/templates/task.html | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'bitbake/lib/toaster/toastergui/templates') diff --git a/bitbake/lib/toaster/toastergui/templates/task.html b/bitbake/lib/toaster/toastergui/templates/task.html index 09fd25b259..907c621834 100644 --- a/bitbake/lib/toaster/toastergui/templates/task.html +++ b/bitbake/lib/toaster/toastergui/templates/task.html @@ -130,6 +130,13 @@ {%elif task.outcome == task.OUTCOME_CACHED%} + {% if MANAGED and build.project %} + {% for t in task.get_related_setscene %} + {% if forloop.last %} + Download task log + {% endif %} + {% endfor %} + {% else %}
Log file @@ -138,6 +145,7 @@ {% for t in task.get_related_setscene %} {{t.logfile}} {% endfor %}
+ {% endif %} {%elif task.outcome == task.OUTCOME_EMPTY%}
This task is empty because it has the noexec flag set to 1, or the task function is empty -- cgit v1.2.3-54-g00ecf