]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
toaster: localhostbecontroller CustomRecipe now base_recipe is Recipe
authorMichael Wood <michael.g.wood@intel.com>
Wed, 21 Oct 2015 13:16:45 +0000 (14:16 +0100)
committerMichael Wood <michael.g.wood@intel.com>
Mon, 8 Feb 2016 17:30:15 +0000 (17:30 +0000)
Update the reference to the base_recipe. It is now a Recipe object
rather than an intermediate AvailableRecipe object.
Therefore doesn't need an extra traverse down the object hierarchy.

Signed-off-by: Michael Wood <michael.g.wood@intel.com>
Signed-off-by: brian avery <avery.brian@gmail.com>
lib/toaster/bldcontrol/localhostbecontroller.py

index 2215d7af24be25028c201a5b661d40e551495458..2dd48d454ac2d7130a3c62a8937f07e965979bfa 100644 (file)
@@ -242,7 +242,7 @@ class LocalhostBEController(BuildEnvironmentController):
             # create recipe
             recipe = os.path.join(layerpath, "recipes", "%s.bb" % target.target)
             with open(recipe, "w") as recipef:
-                recipef.write("require %s\n" % customrecipe.base_recipe.recipe.file_path)
+                recipef.write("require %s\n" % customrecipe.base_recipe.file_path)
                 packages = [pkg.name for pkg in customrecipe.packages.all()]
                 if packages:
                     recipef.write('IMAGE_INSTALL = "%s"\n' % ' '.join(packages))