]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
devtool: finish: improve reporting for removed files
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Tue, 7 Nov 2017 21:52:15 +0000 (10:52 +1300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 11 Nov 2017 12:14:27 +0000 (12:14 +0000)
commitd906d7cea814de917baf70eb3ecb568862fbc363
tree467e4045745e7ec6cb6a71e9bd67756be6c46173
parent541b7e2ce043524d2310fd642dbce4daa70f8457
devtool: finish: improve reporting for removed files

If a file is going to be effectively removed from the destination by
devtool finish, we should report that rather than just reporting that
we're removing files from the workspace. This is a little tricky because
the way we actually operate when finishing is to:
 (1) remove all original files (as recorded by devtool upgrade, if that
     was used)
 (2) as part of updating the recipe file, remove the files from next to
     the new recipe (i.e. in the workspace for an upgrade, real recipe
     otherwise) corresponding to commits not in the git tree
 (3) copy over remaining files from the workspace to the destination

To report the files removed with respect to what was originally there,
we need to swap steps 1 and 2 so we can see what no longer exists after
the deletion, and suppress the reporting currently done in step 2 -
however, we still want to report removal in step 2 for the non-upgrade
case, so the latter is conditional.

(From OE-Core rev: db1d663507509cac9d97d7c96ac8590478767ba2)

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