diff options
author | Dave Lerner <dave.lerner@windriver.com> | 2015-03-05 17:01:55 -0600 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-03-09 14:33:55 +0000 |
commit | 3c641e7238667d941b13aca9c5f3e392085f7a9f (patch) | |
tree | c83ab75e4a64e2b80fa460e82b07d642b3853325 /bitbake/lib | |
parent | f5edfce70d089f47ce440701266122f814b4a94e (diff) | |
download | poky-3c641e7238667d941b13aca9c5f3e392085f7a9f.tar.gz |
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 <dave.lerner@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib')
-rw-r--r-- | bitbake/lib/toaster/toastergui/templates/task.html | 8 |
1 files changed, 8 insertions, 0 deletions
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 @@ | |||
130 | </dd> | 130 | </dd> |
131 | </dl> | 131 | </dl> |
132 | {%elif task.outcome == task.OUTCOME_CACHED%} | 132 | {%elif task.outcome == task.OUTCOME_CACHED%} |
133 | {% if MANAGED and build.project %} | ||
134 | {% for t in task.get_related_setscene %} | ||
135 | {% if forloop.last %} | ||
136 | <a class="btn btn-large" href="{% url 'build_artifact' build.id "tasklogfile" t.pk %}" style="margin:15px;">Download task log</a> | ||
137 | {% endif %} | ||
138 | {% endfor %} | ||
139 | {% else %} | ||
133 | <dl class="dl-horizontal"> | 140 | <dl class="dl-horizontal"> |
134 | <dt> | 141 | <dt> |
135 | <i class="icon-question-sign get-help" title="Path the task log file"></i> Log file | 142 | <i class="icon-question-sign get-help" title="Path the task log file"></i> Log file |
@@ -138,6 +145,7 @@ | |||
138 | <code>{% for t in task.get_related_setscene %} {{t.logfile}} {% endfor %}</code> | 145 | <code>{% for t in task.get_related_setscene %} {{t.logfile}} {% endfor %}</code> |
139 | </dd> | 146 | </dd> |
140 | </dl> | 147 | </dl> |
148 | {% endif %} | ||
141 | {%elif task.outcome == task.OUTCOME_EMPTY%} | 149 | {%elif task.outcome == task.OUTCOME_EMPTY%} |
142 | <div class="alert alert-info details"> | 150 | <div class="alert alert-info details"> |
143 | This task is empty because it has the <code>noexec</code> flag set to <code>1</code>, or the task function is empty | 151 | This task is empty because it has the <code>noexec</code> flag set to <code>1</code>, or the task function is empty |