diff options
author | Markus Lehtonen <markus.lehtonen@linux.intel.com> | 2015-09-23 11:05:25 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-09-24 17:54:25 +0100 |
commit | bdbd8b4fef2638098716f032f2f5e485873770c2 (patch) | |
tree | 780aafeee6710d15fb755d07dc66a47a44f57b9f /scripts/lib/devtool/upgrade.py | |
parent | 346784b24b154f9bb7d66c290bbfd9dcd2dbe7d0 (diff) | |
download | poky-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/lib/devtool/upgrade.py')
-rw-r--r-- | scripts/lib/devtool/upgrade.py | 2 |
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 | ||
58 | def _get_checksums(rf): | 58 | def _get_checksums(rf): |
59 | import re | 59 | import re |