bitbake: toaster: include locale and packagegroup packages in custom image
The custom image editing page doesn't show locale and packagegroup packages: they are filtered out of the queryset used to populate the ToasterTable. Rather than filtering these packages out, include them in the list of packages which are shown. (Bitbake rev: 38a753e7b2e9ede326856b830b25e13bdd6d0d9b) Signed-off-by: Elliot Smith <elliot.smith@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:
parent
baac4589ae
commit
a757d397db
|
@ -738,15 +738,10 @@ class SelectPackagesTable(PackagesTable):
|
|||
|
||||
current_recipes = prj.get_available_recipes()
|
||||
|
||||
# Exclude ghost packages and ones which have locale in the name
|
||||
# This is a work around locale packages being dynamically created
|
||||
# and therefore not recognised as packages by bitbake.
|
||||
# We also only show packages which recipes->layers are in the project
|
||||
# only show packages where recipes->layers are in the project
|
||||
self.queryset = CustomImagePackage.objects.filter(
|
||||
~Q(recipe=None) &
|
||||
Q(recipe__in=current_recipes) &
|
||||
~Q(name__icontains="locale") &
|
||||
~Q(name__icontains="packagegroup"))
|
||||
Q(recipe__in=current_recipes))
|
||||
|
||||
self.queryset = self.queryset.order_by('name')
|
||||
|
||||
|
|
Loading…
Reference in New Issue