mirror of
https://git.yoctoproject.org/poky
synced 2026-05-08 17:19:20 +00:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
94bca58067
commit
913e9b1cbc
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user