summaryrefslogtreecommitdiffstats
path: root/meta/lib/oe
diff options
context:
space:
mode:
authorJulien Stephan <jstephan@baylibre.com>2023-12-05 15:56:28 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-12-06 22:55:49 +0000
commiteb0b664c8c0cca4456e2b175509dba1bab95b7f7 (patch)
treed7e6384c38e0dbe65932989f83ceb7d8aaf87896 /meta/lib/oe
parentde5ab8e8634bf3ced0b04dc14c56f14019f516b8 (diff)
downloadpoky-eb0b664c8c0cca4456e2b175509dba1bab95b7f7.tar.gz
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. (From OE-Core rev: 234111fb67ffbcc5492cb0cd96db25ed8f5acea0) Signed-off-by: Julien Stephan <jstephan@baylibre.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oe')
-rw-r--r--meta/lib/oe/recipeutils.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/lib/oe/recipeutils.py b/meta/lib/oe/recipeutils.py
index 25b159bc1b..0aa6d0593e 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,
702 if not removevalues: 702 if not removevalues:
703 removevalues = {} 703 removevalues = {}
704 704
705 recipefile = rd.getVar('FILE')
705 # Determine how the bbappend should be named 706 # Determine how the bbappend should be named
706 appendpath, pathok = get_bbappend_path(rd, destlayerdir, wildcardver) 707 appendpath, pathok = get_bbappend_path(rd, destlayerdir, wildcardver)
707 if not appendpath: 708 if not appendpath: