]> code.ossystems Code Review - openembedded-core.git/commit
devtool: finish: fix error if destination layer is not in bblayers.conf
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Mon, 31 Oct 2016 03:59:45 +0000 (16:59 +1300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 7 Nov 2016 11:04:17 +0000 (11:04 +0000)
commitc6980307d43632f4172e79d9607004203af4e9c8
tree9291bb6f87bb00dffa973c087737f74a9d7a322d
parent219aec8803de4ef04c514c87ecfb15359c9424a6
devtool: finish: fix error if destination layer is not in bblayers.conf

If devtool finish is run on a recipe where the recipe file itself is in
the workspace (e.g. where devtool add / devtool upgrade has been used)
and the specified destination layer is not in bblayers.conf, then we
need to avoid running bitbake -c clean at the end because the recipe has
been moved, but the bbappend is still present in the workspace layer at
that point and so if we do it will fail due to the dangling bbappend.
It's difficult to do the clean at the point we'd want to because tinfoil
is holding bitbake.lock for most of the time, but in any case cleaning
the recipe is less important than it used to be since we started
managing the sysroot contents more strictly, so just disable cleaning
under these circumstances to avoid the problem.

Fixes [YOCTO #10484].

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
scripts/lib/devtool/standard.py