]> code.ossystems Code Review - openembedded-core.git/commit
devtool: add finish subcommand
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Wed, 13 Jul 2016 21:04:25 +0000 (09:04 +1200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 20 Jul 2016 09:24:53 +0000 (10:24 +0100)
commitfa550fcb9333d59b28fc0e4aebde888831410f5c
treee8b3b60565cd24bf09ccbe40379f9276af201051
parent92eb42c347af919cd9f8739515fdf806c12b5ba8
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>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/lib/oe/recipeutils.py
meta/lib/oeqa/selftest/devtool.py
scripts/lib/devtool/standard.py