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/toaster/bldviewer/templates/bpackage.html | 6 +++--- bitbake/lib/toaster/bldviewer/templates/package.html | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'bitbake/lib/toaster/bldviewer/templates') diff --git a/bitbake/lib/toaster/bldviewer/templates/bpackage.html b/bitbake/lib/toaster/bldviewer/templates/bpackage.html index 4e6d9c6778..ca092ca6a0 100644 --- a/bitbake/lib/toaster/bldviewer/templates/bpackage.html +++ b/bitbake/lib/toaster/bldviewer/templates/bpackage.html @@ -23,7 +23,7 @@ {{package.name}} ({{package.filelist_bpackage.count}} files) {{package.version}}-{{package.revision}} - {{package.recipe.name}}{{package.package_name}} + {%if package.recipe%}{{package.recipe.name}}{{package.package_name}}{%endif%} {{package.summary}} {{package.section}} @@ -32,8 +32,8 @@ {{package.license}}
- {% for bpd in package.bpackage_dependencies_package.all %} - {{bpd.dep_type}}: {{bpd.depends_on}}
+ {% for bpd in package.package_dependencies_source.all %} + {{bpd.dep_type}}: {{bpd.depends_on.name}}
{% endfor %}
diff --git a/bitbake/lib/toaster/bldviewer/templates/package.html b/bitbake/lib/toaster/bldviewer/templates/package.html index c22e988e95..b1246e788a 100644 --- a/bitbake/lib/toaster/bldviewer/templates/package.html +++ b/bitbake/lib/toaster/bldviewer/templates/package.html @@ -23,7 +23,7 @@ {{package.recipe.name}}{{package.package_name}}{%endif%}
- {% for d in package.tpackage_dependencies_package.all %} + {% for d in package.package_dependencies_source.all %} {{d.depends_on.name}}
{% endfor %}
-- cgit v1.2.3-54-g00ecf