[Toaster] [PATCH 4/5] toaster: PackagesTable show only installed packages
Michael Wood
michael.g.wood at intel.com
Tue Feb 16 11:19:56 PST 2016
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]
Signed-off-by: Michael Wood <michael.g.wood at intel.com>
---
bitbake/lib/toaster/toastergui/tables.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/bitbake/lib/toaster/toastergui/tables.py b/bitbake/lib/toaster/toastergui/tables.py
index 5a589d3..c0ad2b7 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()
--
2.5.0
More information about the toaster
mailing list