From: Julien Stephan Date: Tue, 5 Dec 2023 14:56:28 +0000 (+0100) Subject: recipeutils: bbappend_recipe: fix undefined variable X-Git-Tag: yocto-5.2~4392 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=234111fb67ffbcc5492cb0cd96db25ed8f5acea0;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git recipeutils: bbappend_recipe: fix undefined variable In the case get_bbappend_path returns None (could not find the layer containing the recipe) the error message tries to print the recipefile, but it is not defined. Fix it. Signed-off-by: Julien Stephan Signed-off-by: Alexandre Belloni Signed-off-by: Richard Purdie --- diff --git a/meta/lib/oe/recipeutils.py b/meta/lib/oe/recipeutils.py index 25b159bc1bc..0aa6d0593ed 100644 --- a/meta/lib/oe/recipeutils.py +++ b/meta/lib/oe/recipeutils.py @@ -702,6 +702,7 @@ def bbappend_recipe(rd, destlayerdir, srcfiles, install=None, wildcardver=False, if not removevalues: removevalues = {} + recipefile = rd.getVar('FILE') # Determine how the bbappend should be named appendpath, pathok = get_bbappend_path(rd, destlayerdir, wildcardver) if not appendpath: