summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster
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/lib/toaster
parent94bca58067b8dcda3cb84a64d0fbce65c7bb8270 (diff)
downloadpoky-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/lib/toaster')
-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):
654 ).last() 654 ).last()
655 655
656 if target: 656 if target:
657 return target.build.package_set.all() 657 pkgs = target.target_installed_package_set.values_list('package',
658 flat=True)
659 return Package.objects.filter(pk__in=pkgs)
658 660
659 # Target/recipe never successfully built so empty queryset 661 # Target/recipe never successfully built so empty queryset
660 return Package.objects.none() 662 return Package.objects.none()