bitbake: 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. (Bitbake rev: c1bd4f760cd35535e44f488250e0a56b99cad680) Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: brian avery <avery.brian@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
4117af29c6
commit
f760a78e3c
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue