diff options
author | Alexandru DAMIAN <alexandru.damian@intel.com> | 2014-02-21 11:59:38 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-03-09 12:24:01 -0700 |
commit | 3f16624485e44bf4b261be4aa506dd8c7fc8a6cc (patch) | |
tree | c4a59b809b34349efcb6cac9efb04815e7b16c31 /bitbake | |
parent | 24f0617e257fef82e66adb0b89ceeb07984758bf (diff) | |
download | poky-3f16624485e44bf4b261be4aa506dd8c7fc8a6cc.tar.gz |
bitbake: toasterui: fix status update on failed sstate tasks
This patch fixes a logical error when updating task information
based on the corresponding sstate task state.
(Bitbake rev: 777458a20a7f686881e525a4d81b286c486ead6a)
Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r-- | bitbake/lib/bb/ui/buildinfohelper.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/bitbake/lib/bb/ui/buildinfohelper.py b/bitbake/lib/bb/ui/buildinfohelper.py index 846465c971..f221daca5a 100644 --- a/bitbake/lib/bb/ui/buildinfohelper.py +++ b/bitbake/lib/bb/ui/buildinfohelper.py | |||
@@ -110,9 +110,12 @@ class ORMWrapper(object): | |||
110 | for v in vars(task_object): | 110 | for v in vars(task_object): |
111 | if v in task_information.keys(): | 111 | if v in task_information.keys(): |
112 | vars(task_object)[v] = task_information[v] | 112 | vars(task_object)[v] = task_information[v] |
113 | # if we got covered by a setscene task, we're CACHED | 113 | |
114 | if task_object.outcome == Task.OUTCOME_COVERED and 1 == Task.objects.related_setscene(task_object).count(): | 114 | # update setscene-related information |
115 | task_object.outcome = Task.OUTCOME_CACHED | 115 | if 1 == Task.objects.related_setscene(task_object).count(): |
116 | if task_object.outcome == Task.OUTCOME_COVERED: | ||
117 | task_object.outcome = Task.OUTCOME_CACHED | ||
118 | |||
116 | outcome_task_setscene = Task.objects.get(task_executed=True, build = task_object.build, | 119 | outcome_task_setscene = Task.objects.get(task_executed=True, build = task_object.build, |
117 | recipe = task_object.recipe, task_name=task_object.task_name+"_setscene").outcome | 120 | recipe = task_object.recipe, task_name=task_object.task_name+"_setscene").outcome |
118 | if outcome_task_setscene == Task.OUTCOME_SUCCESS: | 121 | if outcome_task_setscene == Task.OUTCOME_SUCCESS: |