diff options
author | Alexandru DAMIAN <alexandru.damian@intel.com> | 2013-11-26 18:12:43 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-12-10 11:16:12 +0000 |
commit | 54d0e30433c249604611367cf387bc20721c4523 (patch) | |
tree | 8f576220f0a4627a763d663089c9ebc0f4b29884 /bitbake/lib/bb/ui/toasterui.py | |
parent | f8120984f459d193ce5ffa243137baf0e38d223e (diff) | |
download | poky-54d0e30433c249604611367cf387bc20721c4523.tar.gz |
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 <alexandru.damian@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/ui/toasterui.py')
-rw-r--r-- | bitbake/lib/bb/ui/toasterui.py | 3 |
1 files changed, 2 insertions, 1 deletions
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 ): | |||
209 | continue | 209 | continue |
210 | 210 | ||
211 | if isinstance(event, (bb.event.BuildCompleted)): | 211 | if isinstance(event, (bb.event.BuildCompleted)): |
212 | buildinfohelper.read_target_package_dep_data(event) | ||
213 | buildinfohelper.update_build_information(event, errors, warnings, taskfailures) | 212 | buildinfohelper.update_build_information(event, errors, warnings, taskfailures) |
214 | continue | 213 | continue |
215 | 214 | ||
@@ -240,6 +239,8 @@ def main(server, eventHandler, params ): | |||
240 | buildinfohelper.store_layer_info(event) | 239 | buildinfohelper.store_layer_info(event) |
241 | if event.type == "BuildStatsList": | 240 | if event.type == "BuildStatsList": |
242 | buildinfohelper.store_tasks_stats(event) | 241 | buildinfohelper.store_tasks_stats(event) |
242 | if event.type == "ImagePkgList": | ||
243 | buildinfohelper.store_target_package_data(event) | ||
243 | continue | 244 | continue |
244 | 245 | ||
245 | # ignore | 246 | # ignore |