diff options
author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2017-11-08 09:45:06 +1300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-11-10 14:44:31 +0000 |
commit | 5e3fe00a0233d563781849a44f53885b4e924a9c (patch) | |
tree | 2f33694b5d1052dd2909820108cc762fcd749f5c | |
parent | c2b3154158d4bb0855daa56477393341139d4cf9 (diff) | |
download | openembedded-core-5e3fe00a0233d563781849a44f53885b4e924a9c.tar.gz openembedded-core-5e3fe00a0233d563781849a44f53885b4e924a9c.tar.bz2 openembedded-core-5e3fe00a0233d563781849a44f53885b4e924a9c.zip |
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].
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
-rw-r--r-- | meta/lib/oe/recipeutils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/lib/oe/recipeutils.py b/meta/lib/oe/recipeutils.py index c8570acf9e..2f818bcbaa 100644 --- a/meta/lib/oe/recipeutils.py +++ b/meta/lib/oe/recipeutils.py @@ -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')): |