summaryrefslogtreecommitdiffstats
path: root/scripts/lib/devtool/upgrade.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/lib/devtool/upgrade.py')
-rw-r--r--scripts/lib/devtool/upgrade.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/lib/devtool/upgrade.py b/scripts/lib/devtool/upgrade.py
index 5a057e95f5..24e3700ece 100644
--- a/scripts/lib/devtool/upgrade.py
+++ b/scripts/lib/devtool/upgrade.py
@@ -71,7 +71,8 @@ def _rename_recipe_dirs(oldpv, newpv, path):
71 if oldfile.find(oldpv) != -1: 71 if oldfile.find(oldpv) != -1:
72 newfile = oldfile.replace(oldpv, newpv) 72 newfile = oldfile.replace(oldpv, newpv)
73 if oldfile != newfile: 73 if oldfile != newfile:
74 os.rename(os.path.join(path, oldfile), os.path.join(path, newfile)) 74 bb.utils.rename(os.path.join(path, oldfile),
75 os.path.join(path, newfile))
75 76
76def _rename_recipe_file(oldrecipe, bpn, oldpv, newpv, path): 77def _rename_recipe_file(oldrecipe, bpn, oldpv, newpv, path):
77 oldrecipe = os.path.basename(oldrecipe) 78 oldrecipe = os.path.basename(oldrecipe)