From: Michael Wood Date: Wed, 21 Oct 2015 13:16:45 +0000 (+0100) Subject: toaster: localhostbecontroller CustomRecipe now base_recipe is Recipe X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8056ec65bd93005ecb7b0ed12dcb21b3b60df22c;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git toaster: localhostbecontroller CustomRecipe now base_recipe is Recipe 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 Signed-off-by: brian avery --- diff --git a/lib/toaster/bldcontrol/localhostbecontroller.py b/lib/toaster/bldcontrol/localhostbecontroller.py index 2215d7af24b..2dd48d454ac 100644 --- a/lib/toaster/bldcontrol/localhostbecontroller.py +++ b/lib/toaster/bldcontrol/localhostbecontroller.py @@ -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))