bitbake: toaster: change package storage model
authorAlexandru DAMIAN <alexandru.damian@intel.com>
Tue, 26 Nov 2013 18:12:43 +0000 (18:12 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 10 Dec 2013 11:16:12 +0000 (11:16 +0000)
commit7f6edcf2c1875db25dd4cd8a0437b744142414cf
treef342d91b8053a94488b5c3c92b20d92adb58307b
parente0fa70b53f70675552116359502bbb2b570a09bd
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>
bitbake/lib/bb/ui/buildinfohelper.py
bitbake/lib/bb/ui/toasterui.py
bitbake/lib/toaster/bldviewer/templates/bpackage.html
bitbake/lib/toaster/bldviewer/templates/package.html
bitbake/lib/toaster/bldviewer/views.py
bitbake/lib/toaster/orm/models.py