]> code.ossystems Code Review - openembedded-core.git/commit
devtool: upgrade: fix handling of non-absolute paths
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Wed, 30 Aug 2017 23:54:06 +0000 (11:54 +1200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 31 Aug 2017 22:25:32 +0000 (23:25 +0100)
commit3861486ad06f90c8644ebab119bbc5ddb9e693ca
tree161bf5a8238f190432ea360f38ee033bf6ed048c
parent350f83dc1e317aeb93539f13966caca6d894f569
devtool: upgrade: fix handling of non-absolute paths

If your BBLAYERS has non-absolute paths in it (e.g.
"${COREBASE}/../something") then none of the paths matched in
copy_recipe_files() with the result that no files got copied and you
ended up with an error later on because the recipe file couldn't be
found at the destination. Fix this as well as adding an explicit check
to see if no files got copied - error out earlier if so.

Fixes [YOCTO #10981].

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oe/recipeutils.py
scripts/lib/devtool/upgrade.py