diff options
author | Michael Wood <michael.g.wood@intel.com> | 2015-12-07 18:22:08 +0000 |
---|---|---|
committer | Michael Wood <michael.g.wood@intel.com> | 2016-02-08 17:30:15 +0000 |
commit | c1bd4f760cd35535e44f488250e0a56b99cad680 (patch) | |
tree | cb5c1815309bba51954cb46c9648fa3503d78310 /lib/toaster/orm | |
parent | 2831d74201abba68c301d85ee583d706a51d5a5f (diff) | |
download | bitbake-c1bd4f760cd35535e44f488250e0a56b99cad680.tar.gz |
toaster: orm Add CustomImagePackage table
This table is used to track all the available packages in the current
toaster. Many of these packages belong to many CustomImageRecipes.
Signed-off-by: Michael Wood <michael.g.wood@intel.com>
Signed-off-by: brian avery <avery.brian@gmail.com>
Diffstat (limited to 'lib/toaster/orm')
-rw-r--r-- | lib/toaster/orm/models.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/toaster/orm/models.py b/lib/toaster/orm/models.py index d1245463a..20557abfc 100644 --- a/lib/toaster/orm/models.py +++ b/lib/toaster/orm/models.py @@ -721,6 +721,18 @@ class Package(models.Model): section = models.CharField(max_length=80, blank=True) license = models.CharField(max_length=80, blank=True) +class CustomImagePackage(Package): + # CustomImageRecipe fields to track pacakges appended, + # included and excluded from a CustomImageRecipe + recipe_includes = models.ManyToManyField('CustomImageRecipe', + related_name='includes_set') + recipe_excludes = models.ManyToManyField('CustomImageRecipe', + related_name='excludes_set') + recipe_appends = models.ManyToManyField('CustomImageRecipe', + related_name='appends_set') + + + class Package_DependencyManager(models.Manager): use_for_related_fields = True |