mirror of
https://git.yoctoproject.org/poky
synced 2026-03-06 23:39:40 +01:00
lib/oe/recipeutils: fix find_layerdir() to return absolute paths
find_layerdir() should really return absolute paths, so make it do so. This fixes devtool finish not deleting files it should do after devtool upgrade if the specified path is relative, since the devtool finish code was assuming that find_layerdir() was returning an absolute path. Fixes [YOCTO #12318]. (From OE-Core rev: 5e3fe00a0233d563781849a44f53885b4e924a9c) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
e9bb56067a
commit
b575564ee3
@@ -801,7 +801,7 @@ def bbappend_recipe(rd, destlayerdir, srcfiles, install=None, wildcardver=False,
|
||||
|
||||
def find_layerdir(fn):
|
||||
""" Figure out the path to the base of the layer containing a file (e.g. a recipe)"""
|
||||
pth = fn
|
||||
pth = os.path.abspath(fn)
|
||||
layerdir = ''
|
||||
while pth:
|
||||
if os.path.exists(os.path.join(pth, 'conf', 'layer.conf')):
|
||||
|
||||
Reference in New Issue
Block a user