]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
devtool: add finish subcommand paule/devtool19-oe
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Tue, 5 Jul 2016 23:04:14 +0000 (11:04 +1200)
committerPaul Eggleton <paul.eggleton@linux.intel.com>
Wed, 13 Jul 2016 21:01:21 +0000 (09:01 +1200)
commitaf18eaba2b4207ebb9862c0fec777c4ab5ea1c9c
tree0c24743b662972d3abb0f064b8a79449bf261c93
parent12c51b58cb273e5104aca84996ef0474465efc6d
devtool: add finish subcommand

Add a subcommand which will "finish" the work on a recipe. This is
effectively the same as update-recipe followed by reset, except that the
destination layer is required and it will do the right thing depending
on the situation - if the recipe file itself is in the workspace (e.g.
as a result of devtool add), the recipe file and any associated files
will be moved to the destination layer; or if the destination layer is
the one containing the original recipe, the recipe will be overwritten;
otherwise a bbappend will be created to apply the changes. In all cases
the layer path can be loosely specified - it could be a layer name, or
a partial path into a recipe. In the case of upgrades, devtool finish
will also take care of deleting the old recipe.

This avoids the user having to figure out the correct actions when
they're done - they just do "devtool finish recipename layername" and
it saves their work and then removes the recipe from the workspace.

Addresses [YOCTO #8594].

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
meta/lib/oe/recipeutils.py
meta/lib/oeqa/selftest/devtool.py
scripts/lib/devtool/standard.py