summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/orm/models.py
diff options
context:
space:
mode:
authorDavid Reyna <David.Reyna@windriver.com>2017-08-20 18:01:48 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-08-23 12:07:42 +0100
commit52a67cc958185266f1b982555cf019a8b4f10817 (patch)
tree455d1e24d62b2a00c2926463d4ab405bbab80cba /bitbake/lib/toaster/orm/models.py
parente659fcc6b8d34955b2c38feffc86118f97b6dd9f (diff)
downloadpoky-52a67cc958185266f1b982555cf019a8b4f10817.tar.gz
bitbake: toaster: custom image updates and original creation
When Toaster removes a package from a custom image, it must also always remove the advised reverse-dependent recipes. Similarly, when adding a package it must always add its advised the packages it depends on. This code must be un-indented so that it applies to all respective added or removed packages. Toaster normally waits until a new custom image is built before creating the custom layer and the recipe. However, an intermediate different build can fail because the recipe has already been added to the project, so the image's default recipe must be created when the image is created. [YOCTO #11915] (Bitbake rev: bcd68fd7231f166baff875fb88e4f9ce0d9bf91d) Signed-off-by: David Reyna <David.Reyna@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster/orm/models.py')
-rw-r--r--bitbake/lib/toaster/orm/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/toaster/orm/models.py b/bitbake/lib/toaster/orm/models.py
index 7aaebedc2d..3a7dff8ca6 100644
--- a/bitbake/lib/toaster/orm/models.py
+++ b/bitbake/lib/toaster/orm/models.py
@@ -1658,7 +1658,7 @@ class CustomImageRecipe(Recipe):
1658 1658
1659 def get_base_recipe_file(self): 1659 def get_base_recipe_file(self):
1660 """Get the base recipe file path if it exists on the file system""" 1660 """Get the base recipe file path if it exists on the file system"""
1661 path_schema_one = "%s/%s" % (self.base_recipe.layer_version.dirpath, 1661 path_schema_one = "%s/%s" % (self.base_recipe.layer_version.local_path,
1662 self.base_recipe.file_path) 1662 self.base_recipe.file_path)
1663 1663
1664 path_schema_two = self.base_recipe.file_path 1664 path_schema_two = self.base_recipe.file_path