generic-poky/scripts/lib/recipetool
Paul Eggleton 8cacd228e6 recipetool: create: fix change in path structure if --extract-to path exists
If the directory specified by --extract-to exists, because we were using
shutil.move() to move the temporary extracted directory to the specified
path, a subdirectory was being created under that directory instead of
moving the contents, which was a different result than if the directory
didn't previously exist. We could try to always move the contents but
that's complicated when any symlinks are involved; the simplest thing is
just to remove the directory (which should be empty anyway) before
moving the temporary directory across in its place.

(From OE-Core rev: 2880bd23b471c1966661b9f05726faf60f9c0e7e)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2015-10-07 00:09:10 +01:00
..
__init__.py scripts/recipetool: Add a recipe auto-creation script 2014-12-23 10:18:15 +00:00
append.py devtool: make plugin_init optional 2015-09-12 22:48:30 +01:00
create.py recipetool: create: fix change in path structure if --extract-to path exists 2015-10-07 00:09:10 +01:00
create_buildsys.py devtool: make plugin_init optional 2015-09-12 22:48:30 +01:00
create_buildsys_python.py devtool: make plugin_init optional 2015-09-12 22:48:30 +01:00
newappend.py recipetool: add 'newappend' sub-command 2015-09-18 09:05:30 +01:00