diff options
Diffstat (limited to 'bitbake/lib/toaster/orm/models.py')
-rw-r--r-- | bitbake/lib/toaster/orm/models.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bitbake/lib/toaster/orm/models.py b/bitbake/lib/toaster/orm/models.py index 874b58ecba..4e790c2dd6 100644 --- a/bitbake/lib/toaster/orm/models.py +++ b/bitbake/lib/toaster/orm/models.py | |||
@@ -1401,6 +1401,12 @@ class CustomImageRecipe(Recipe): | |||
1401 | base_recipe = models.ForeignKey(Recipe, related_name='based_on_recipe') | 1401 | base_recipe = models.ForeignKey(Recipe, related_name='based_on_recipe') |
1402 | project = models.ForeignKey(Project) | 1402 | project = models.ForeignKey(Project) |
1403 | 1403 | ||
1404 | def get_all_packages(self): | ||
1405 | """Get the included packages and any appended packages""" | ||
1406 | return CustomImagePackage.objects.filter((Q(recipe_appends=self) | | ||
1407 | Q(recipe_includes=self)) & | ||
1408 | ~Q(recipe_excludes=self)) | ||
1409 | |||
1404 | def generate_recipe_file_contents(self): | 1410 | def generate_recipe_file_contents(self): |
1405 | """Generate the contents for the recipe file.""" | 1411 | """Generate the contents for the recipe file.""" |
1406 | # If we have no excluded packages we only need to _append | 1412 | # If we have no excluded packages we only need to _append |