[OE-core] [PATCH] devtool: upgrade: use shutil.move instead of os.rename
Paul Eggleton
paul.eggleton at linux.intel.com
Tue Sep 22 12:31:20 UTC 2015
On Tuesday 22 September 2015 14:24:04 Markus Lehtonen wrote:
> Rename fails over filesystem boundaries.
>
> Signed-off-by: Markus Lehtonen <markus.lehtonen at linux.intel.com>
> ---
> scripts/lib/devtool/upgrade.py | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/scripts/lib/devtool/upgrade.py b/scripts/lib/devtool/upgrade.py
> index e74e795..18e010c 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
Ah yes, good catch.
Acked-by: Paul Eggleton <paul.eggleton at linux.intel.com>
Cheers,
Paul
--
Paul Eggleton
Intel Open Source Technology Centre
More information about the Openembedded-core
mailing list