summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>2015-09-23 11:05:25 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-09-24 17:54:25 +0100
commitbdbd8b4fef2638098716f032f2f5e485873770c2 (patch)
tree780aafeee6710d15fb755d07dc66a47a44f57b9f /scripts
parent346784b24b154f9bb7d66c290bbfd9dcd2dbe7d0 (diff)
downloadpoky-bdbd8b4fef2638098716f032f2f5e485873770c2.tar.gz
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>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/lib/devtool/upgrade.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/lib/devtool/upgrade.py b/scripts/lib/devtool/upgrade.py
index aa53c8e00b..4f850cf0e4 100644
--- a/scripts/lib/devtool/upgrade.py
+++ b/scripts/lib/devtool/upgrade.py
@@ -53,7 +53,7 @@ def _copy_source_code(orig, dest):
53 dest_dir = os.path.join(dest, os.path.dirname(path)) 53 dest_dir = os.path.join(dest, os.path.dirname(path))
54 bb.utils.mkdirhier(dest_dir) 54 bb.utils.mkdirhier(dest_dir)
55 dest_path = os.path.join(dest, path) 55 dest_path = os.path.join(dest, path)
56 os.rename(os.path.join(orig, path), dest_path) 56 shutil.move(os.path.join(orig, path), dest_path)
57 57
58def _get_checksums(rf): 58def _get_checksums(rf):
59 import re 59 import re