From: Paul Eggleton Date: Mon, 20 Nov 2017 02:00:59 +0000 (+1300) Subject: devtool: finish: fix erroneously creating bbappend for relative paths X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=74154b4da32cff6d3d3ec002ae742f6bf272ceb1;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git devtool: finish: fix erroneously creating bbappend for relative paths After OE-Core rev 5e3fe00a0233d563781849a44f53885b4e924a9c we call os.path.abspath() on the original layer path, but we later compare that to the destination layer path. If that layer path isn't absolute but is effectively the same path, it should be writing to the original recipe but because we weren't making it absolute we were writing a bbappend instead. Call os.path.abspath() on the destination path as well to avoid that. Signed-off-by: Paul Eggleton --- diff --git a/scripts/lib/devtool/standard.py b/scripts/lib/devtool/standard.py index f59c6d6cc47..cdd2346cb6d 100644 --- a/scripts/lib/devtool/standard.py +++ b/scripts/lib/devtool/standard.py @@ -1848,9 +1848,7 @@ def _get_layer(layername, d): layerdir = layers.get('meta', None) else: layerdir = layers.get(layername, None) - if layerdir: - layerdir = os.path.abspath(layerdir) - return layerdir or layername + return os.path.abspath(layerdir or layername) def finish(args, config, basepath, workspace): """Entry point for the devtool 'finish' subcommand"""