summaryrefslogtreecommitdiff
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-23 22:07:20 +0100
commit479c8eb6547c311123ea30c9f06f2d44c6365473 (patch)
tree20dfd68691726d4f574bc6044844b226e36fb845 /scripts
parent84172ff7b325f081dba6430fd27f12e3745838b5 (diff)
downloadopenembedded-core-479c8eb6547c311123ea30c9f06f2d44c6365473.tar.gz
openembedded-core-479c8eb6547c311123ea30c9f06f2d44c6365473.tar.bz2
openembedded-core-479c8eb6547c311123ea30c9f06f2d44c6365473.zip
devtool: upgrade: use shutil.move instead of os.rename
Rename fails over filesystem boundaries. 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):
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