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 <[email protected]>
---
 bitbake/lib/toaster/bldcontrol/localhostbecontroller.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py 
b/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py
index 92d9ac5..81b773e 100644
--- a/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py
+++ b/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py
@@ -243,7 +243,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))
-- 
2.1.4

-- 
_______________________________________________
toaster mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/toaster

Reply via email to