From 60454a0ba154d6c777e0c2b05b887b4e4fcde986 Mon Sep 17 00:00:00 2001 From: Paul Eggleton Date: Tue, 23 Feb 2016 11:37:59 +1300 Subject: devtool: upgrade: fix moving version-specific files directory We were trying to move this from the current directory instead of the path. Let's just use shutil.move() instead of shelling out to mv. Signed-off-by: Paul Eggleton Signed-off-by: Ross Burton --- scripts/lib/devtool/upgrade.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/lib/devtool/upgrade.py b/scripts/lib/devtool/upgrade.py index 77b48f45a7..f2a93b7acf 100644 --- a/scripts/lib/devtool/upgrade.py +++ b/scripts/lib/devtool/upgrade.py @@ -81,7 +81,7 @@ def _rename_recipe_dirs(oldpv, newpv, path): if olddir.find(oldpv) != -1: newdir = olddir.replace(oldpv, newpv) if olddir != newdir: - _run('mv %s %s' % (olddir, newdir)) + shutil.move(os.path.join(path, olddir), os.path.join(path, newdir)) def _rename_recipe_file(bpn, oldpv, newpv, path): oldrecipe = "%s_%s.bb" % (bpn, oldpv) -- cgit 1.2.3-korg