From a757d397dbc39ca479321263bafcc129451f21f1 Mon Sep 17 00:00:00 2001 From: Elliot Smith Date: Wed, 20 Jan 2016 13:06:00 +0000 Subject: [PATCH] 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 Signed-off-by: brian avery Signed-off-by: Richard Purdie --- bitbake/lib/toaster/toastergui/tables.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/bitbake/lib/toaster/toastergui/tables.py b/bitbake/lib/toaster/toastergui/tables.py index 2903a81696..b73f459b2c 100644 --- a/bitbake/lib/toaster/toastergui/tables.py +++ b/bitbake/lib/toaster/toastergui/tables.py @@ -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')