summaryrefslogtreecommitdiffstats
path: root/scripts/lib/devtool
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2016-02-23 11:37:59 +1300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-02-28 11:33:00 +0000
commit75eeeabe3c60efa40c31789ea083ca35a46b9296 (patch)
tree0aa7d9ec80369af8ec981f43e042323ad390c8a7 /scripts/lib/devtool
parent81ebb0b61ec092e974926a2bd773848d185bdde0 (diff)
downloadpoky-75eeeabe3c60efa40c31789ea083ca35a46b9296.tar.gz
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. (From OE-Core rev: 60454a0ba154d6c777e0c2b05b887b4e4fcde986) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/devtool')
-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 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):
81 if olddir.find(oldpv) != -1: 81 if olddir.find(oldpv) != -1:
82 newdir = olddir.replace(oldpv, newpv) 82 newdir = olddir.replace(oldpv, newpv)
83 if olddir != newdir: 83 if olddir != newdir:
84 _run('mv %s %s' % (olddir, newdir)) 84 shutil.move(os.path.join(path, olddir), os.path.join(path, newdir))
85 85
86def _rename_recipe_file(bpn, oldpv, newpv, path): 86def _rename_recipe_file(bpn, oldpv, newpv, path):
87 oldrecipe = "%s_%s.bb" % (bpn, oldpv) 87 oldrecipe = "%s_%s.bb" % (bpn, oldpv)