mirror of
https://git.yoctoproject.org/poky
synced 2026-04-30 03:32:12 +02:00
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. (From OE-Core rev: a85a78dcf226d160e9b504bfa67b306a9175ac29) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
e295135ba1
commit
0465558e83
@@ -1861,9 +1861,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"""
|
||||
|
||||
Reference in New Issue
Block a user