From f116c32f2a6ed34fc6ab34bae9e1a1e550724208 Mon Sep 17 00:00:00 2001 From: Alexandru DAMIAN Date: Thu, 26 Feb 2015 21:41:56 +0000 Subject: bitbake: toasterui: fix sstate task identification This patch fixes a problem where set sstate scene tasks were not identified, causing cache attempt not being recorded. [YOCTO #7223] (Bitbake rev: 8a326a9a5a08981f1b7960e02fdb8a9436db16fb) Signed-off-by: Alexandru DAMIAN Signed-off-by: Richard Purdie --- bitbake/lib/bb/ui/buildinfohelper.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bitbake/lib/bb') diff --git a/bitbake/lib/bb/ui/buildinfohelper.py b/bitbake/lib/bb/ui/buildinfohelper.py index 967e4bdca2..c0f42d2dcb 100644 --- a/bitbake/lib/bb/ui/buildinfohelper.py +++ b/bitbake/lib/bb/ui/buildinfohelper.py @@ -190,8 +190,8 @@ class ORMWrapper(object): vars(task_object)[v] = task_information[v] object_changed = True - # update setscene-related information if the task was just created - if created and task_object.outcome == Task.OUTCOME_COVERED and 1 == Task.objects.related_setscene(task_object).count(): + # update setscene-related information if the task has a setscene + if task_object.outcome == Task.OUTCOME_COVERED and 1 == task_object.get_related_setscene().count(): task_object.outcome = Task.OUTCOME_CACHED object_changed = True -- cgit v1.2.3-54-g00ecf