This table is used to track all the available packages in the current project scope. Many of these packages belong to many CustomImageRecipes.
Signed-off-by: Michael Wood <[email protected]> --- bitbake/lib/toaster/orm/models.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/bitbake/lib/toaster/orm/models.py b/bitbake/lib/toaster/orm/models.py index debe6fa..2cbbb85 100644 --- a/bitbake/lib/toaster/orm/models.py +++ b/bitbake/lib/toaster/orm/models.py @@ -588,6 +588,22 @@ class Package(models.Model): section = models.CharField(max_length=80, blank=True) license = models.CharField(max_length=80, blank=True) +class ProjectPackage(Package): + project = models.ForeignKey('Project') + # CustomImageRecipe fields to track pacakges appended, + # included and excluded from a CustomImageRecipe + recipe_includes = models.ManyToManyField('CustomImageRecipe', + related_name='includes_set', + null=True) + recipe_excludes = models.ManyToManyField('CustomImageRecipe', + related_name='excludes_set', + null=True) + recipe_appends = models.ManyToManyField('CustomImageRecipe', + related_name='appends_set', + null=True) + + + class Package_DependencyManager(models.Manager): use_for_related_fields = True -- 2.1.4 -- _______________________________________________ toaster mailing list [email protected] https://lists.yoctoproject.org/listinfo/toaster
