From 54d0e30433c249604611367cf387bc20721c4523 Mon Sep 17 00:00:00 2001 From: Alexandru DAMIAN Date: Tue, 26 Nov 2013 18:12:43 +0000 Subject: bitbake: toaster: change package storage model Up until this patch, package information lived in two places - one table for build packages and one table for target installed packaged. This situation leads to two problems: there is no direct link between a build package and a installed package, and a lot of data is duplicated. This change unifies all package types in a single table. The SimpleUI remains the same for continuity sake, but the REST API will be changed in a future patch. The package dependencies and package files are now kept in a single table. Since we collect target installed package information at all times, we need to expand it to supplement missing information if a package is not actually built in the current build. Small changes to the Simple UI reflect the updated database schema. [YOCTO #5565] [YOCTO #5269] (Bitbake rev: f5d655bfaeb349c8680d74530617e34aa389d1f0) Signed-off-by: Alexandru DAMIAN Signed-off-by: Richard Purdie --- bitbake/lib/bb/ui/toasterui.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bitbake/lib/bb/ui/toasterui.py') diff --git a/bitbake/lib/bb/ui/toasterui.py b/bitbake/lib/bb/ui/toasterui.py index 318fc28adb..e469d93e82 100644 --- a/bitbake/lib/bb/ui/toasterui.py +++ b/bitbake/lib/bb/ui/toasterui.py @@ -209,7 +209,6 @@ def main(server, eventHandler, params ): continue if isinstance(event, (bb.event.BuildCompleted)): - buildinfohelper.read_target_package_dep_data(event) buildinfohelper.update_build_information(event, errors, warnings, taskfailures) continue @@ -240,6 +239,8 @@ def main(server, eventHandler, params ): buildinfohelper.store_layer_info(event) if event.type == "BuildStatsList": buildinfohelper.store_tasks_stats(event) + if event.type == "ImagePkgList": + buildinfohelper.store_target_package_data(event) continue # ignore -- cgit v1.2.3-54-g00ecf