diff options
-rw-r--r-- | bitbake/lib/toaster/toastergui/tables.py | 9 |
1 files 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): | |||
738 | 738 | ||
739 | current_recipes = prj.get_available_recipes() | 739 | current_recipes = prj.get_available_recipes() |
740 | 740 | ||
741 | # Exclude ghost packages and ones which have locale in the name | 741 | # only show packages where recipes->layers are in the project |
742 | # This is a work around locale packages being dynamically created | ||
743 | # and therefore not recognised as packages by bitbake. | ||
744 | # We also only show packages which recipes->layers are in the project | ||
745 | self.queryset = CustomImagePackage.objects.filter( | 742 | self.queryset = CustomImagePackage.objects.filter( |
746 | ~Q(recipe=None) & | 743 | ~Q(recipe=None) & |
747 | Q(recipe__in=current_recipes) & | 744 | Q(recipe__in=current_recipes)) |
748 | ~Q(name__icontains="locale") & | ||
749 | ~Q(name__icontains="packagegroup")) | ||
750 | 745 | ||
751 | self.queryset = self.queryset.order_by('name') | 746 | self.queryset = self.queryset.order_by('name') |
752 | 747 | ||