devtool: upgrade: use shutil.move instead of os.rename

Rename fails over filesystem boundaries.

(From OE-Core rev: 479c8eb6547c311123ea30c9f06f2d44c6365473)

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Markus Lehtonen
2015-09-23 11:05:25 +01:00
committed by Richard Purdie
parent 346784b24b
commit bdbd8b4fef

View File

@@ -53,7 +53,7 @@ def _copy_source_code(orig, dest):
dest_dir = os.path.join(dest, os.path.dirname(path))
bb.utils.mkdirhier(dest_dir)
dest_path = os.path.join(dest, path)
os.rename(os.path.join(orig, path), dest_path)
shutil.move(os.path.join(orig, path), dest_path)
def _get_checksums(rf):
import re