diff options
author | Alexandru DAMIAN <alexandru.damian@intel.com> | 2014-03-25 15:51:07 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-04-01 10:22:42 +0100 |
commit | e1bfb5dd61fb684cbde29692f6f957c8737aa41d (patch) | |
tree | 5723dcbcc1cfba25e85f3e06cc22106515eed8db /bitbake/lib/bb | |
parent | cd8541bbfc750d6e46b901a81bcc5636390f6122 (diff) | |
download | poky-e1bfb5dd61fb684cbde29692f6f957c8737aa41d.tar.gz |
bitbake: toaster: update saving sstate task data
This is an update on the sstate file saving data.
It saves both found and missed sstate tasks.
(Bitbake rev: 60c577b1080219b795d3c8ab4e149e929cf9ce14)
Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb')
-rw-r--r-- | bitbake/lib/bb/ui/buildinfohelper.py | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/bitbake/lib/bb/ui/buildinfohelper.py b/bitbake/lib/bb/ui/buildinfohelper.py index d1d92c8a5e..0a155790cf 100644 --- a/bitbake/lib/bb/ui/buildinfohelper.py +++ b/bitbake/lib/bb/ui/buildinfohelper.py | |||
@@ -750,7 +750,7 @@ class BuildInfoHelper(object): | |||
750 | 750 | ||
751 | 751 | ||
752 | def store_missed_state_tasks(self, event): | 752 | def store_missed_state_tasks(self, event): |
753 | for (fn, taskname, taskhash, sstatefile) in event.data: | 753 | for (fn, taskname, taskhash, sstatefile) in event.data['missed']: |
754 | 754 | ||
755 | identifier = fn + taskname + "_setscene" | 755 | identifier = fn + taskname + "_setscene" |
756 | recipe_information = self._get_recipe_information_from_taskfile(fn) | 756 | recipe_information = self._get_recipe_information_from_taskfile(fn) |
@@ -769,6 +769,21 @@ class BuildInfoHelper(object): | |||
769 | 769 | ||
770 | self.orm_wrapper.get_update_task_object(task_information) | 770 | self.orm_wrapper.get_update_task_object(task_information) |
771 | 771 | ||
772 | for (fn, taskname, taskhash, sstatefile) in event.data['found']: | ||
773 | |||
774 | identifier = fn + taskname + "_setscene" | ||
775 | recipe_information = self._get_recipe_information_from_taskfile(fn) | ||
776 | recipe = self.orm_wrapper.get_update_recipe_object(recipe_information) | ||
777 | class MockEvent: pass | ||
778 | event = MockEvent() | ||
779 | event.taskname = taskname | ||
780 | event.taskhash = taskhash | ||
781 | task_information = self._get_task_information(event,recipe) | ||
782 | |||
783 | task_information['path_to_sstate_obj'] = sstatefile | ||
784 | |||
785 | self.orm_wrapper.get_update_task_object(task_information) | ||
786 | |||
772 | 787 | ||
773 | def store_target_package_data(self, event): | 788 | def store_target_package_data(self, event): |
774 | assert 'data' in vars(event) | 789 | assert 'data' in vars(event) |