[oe-commits] [openembedded-core] 35/116: devtool: upgrade: fix moving version-specific files directory

git at git.openembedded.org git at git.openembedded.org
Sun Feb 28 11:29:21 UTC 2016


rpurdie pushed a commit to branch master-next
in repository openembedded-core.

commit ae2ea103384804ec3b026ccebbe52cdf85987071
Author: Paul Eggleton <paul.eggleton at linux.intel.com>
AuthorDate: Tue Feb 23 11:37:59 2016 +1300

    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 <paul.eggleton at linux.intel.com>
    Signed-off-by: Ross Burton <ross.burton at 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 77b48f4..f2a93b7 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)

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list