aboutsummaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorMichael Wood <michael.g.wood@intel.com>2016-02-18 21:21:51 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-02-19 15:38:48 +0000
commit913e9b1cbc54a6363f08a4e15c64188eab91aeef (patch)
treea31d1c6c3124cb3c3a389405cbffc533fb2d8dba /bitbake
parent94bca58067b8dcda3cb84a64d0fbce65c7bb8270 (diff)
downloadopenembedded-core-contrib-913e9b1cbc54a6363f08a4e15c64188eab91aeef.tar.gz
bitbake: toaster: PackagesTable show only installed packages
When showing the package list for the image recipe details only show the packages which are installed in the image rather than all the packages which are produced. [YOCTO #9108] (Bitbake rev: be7dca6c7607c0d13151c2d3f7ad7adcdf365076) Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: brian avery <avery.brian@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/toaster/toastergui/tables.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/bitbake/lib/toaster/toastergui/tables.py b/bitbake/lib/toaster/toastergui/tables.py
index 5a589d3589..c0ad2b7bfa 100644
--- a/bitbake/lib/toaster/toastergui/tables.py
+++ b/bitbake/lib/toaster/toastergui/tables.py
@@ -654,7 +654,9 @@ class PackagesTable(ToasterTable):
).last()
if target:
- return target.build.package_set.all()
+ pkgs = target.target_installed_package_set.values_list('package',
+ flat=True)
+ return Package.objects.filter(pk__in=pkgs)
# Target/recipe never successfully built so empty queryset
return Package.objects.none()