]> code.ossystems Code Review - openembedded-core.git/commit
devtool: reset: fix preserving patches/other files next to recipes
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Fri, 19 Feb 2016 09:38:51 +0000 (22:38 +1300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 21 Feb 2016 09:31:59 +0000 (09:31 +0000)
commitbbe63eb97ae7f78959f117d6066ef821c4da1c77
tree305d0846df8dd1ced2cfd0dbb96917adde1659cb
parent184a256931e8cdc7bea97a905c4e67a435964de0
devtool: reset: fix preserving patches/other files next to recipes

If files had been created next to the recipe (for example devtool add,
edit the source and commit and then devtool update-recipe), running
devtool reset failed to preserve those files and gave an error due
to trying to rmdir the directory containing them which wasn't empty.
Fix the preservation of files in the "attic" directory properly so
we catch anything under the directory for the recipe, and replicate
the same structure in the attic directory rather than slightly
flattening it as we were before.

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