summaryrefslogtreecommitdiff
path: root/meta/recipes-extended/unzip
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2015-10-02 14:05:08 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-10-03 00:01:13 +0100
commit2880bd23b471c1966661b9f05726faf60f9c0e7e (patch)
tree9641fe8177dfbaa4bc276cac90e28e77ba0c15fb /meta/recipes-extended/unzip
parent7baf57ad896112cf2258b3e2c2a1f8b756fb39bc (diff)
downloadopenembedded-core-2880bd23b471c1966661b9f05726faf60f9c0e7e.tar.gz
openembedded-core-2880bd23b471c1966661b9f05726faf60f9c0e7e.tar.bz2
openembedded-core-2880bd23b471c1966661b9f05726faf60f9c0e7e.zip
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. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/unzip')
0 files changed, 0 insertions, 0 deletions