mirror of
https://git.yoctoproject.org/poky
synced 2026-04-05 08:02:25 +02:00
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:
committed by
Richard Purdie
parent
346784b24b
commit
bdbd8b4fef
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user