Commit Message

From: Alexandru DAMIAN <alexandru.damian@intel.com>
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]
Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
---
lib/bb/ui/buildinfohelper.py | 165 ++++++++++++--------------
lib/bb/ui/toasterui.py | 3 +-
lib/toaster/bldviewer/templates/bpackage.html | 6 +-
lib/toaster/bldviewer/templates/package.html | 2 +-
lib/toaster/bldviewer/views.py | 25 ++--
lib/toaster/orm/models.py | 50 +++-----
6 files changed, 108 insertions(+), 143 deletions(-)