[oe-commits] [openembedded-core] 25/38: oeqa/targetbuild: use os.path.join instead of string concatenation

git at git.openembedded.org git at git.openembedded.org
Thu Jun 23 13:27:27 UTC 2016


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

commit 1d40f6e3d85d0cd3be6dd784677686ed4dec89c4
Author: Ross Burton <ross.burton at intel.com>
AuthorDate: Mon Jun 20 17:39:20 2016 +0100

    oeqa/targetbuild: use os.path.join instead of string concatenation
    
    Signed-off-by: Ross Burton <ross.burton at intel.com>
---
 meta/lib/oeqa/utils/targetbuild.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/lib/oeqa/utils/targetbuild.py b/meta/lib/oeqa/utils/targetbuild.py
index f087670..59593f5 100644
--- a/meta/lib/oeqa/utils/targetbuild.py
+++ b/meta/lib/oeqa/utils/targetbuild.py
@@ -117,7 +117,7 @@ class SDKBuildProject(BuildProject):
         subprocess.check_call(cmd, shell=True)
 
         #Change targetdir to project folder
-        self.targetdir = self.targetdir + self.fname
+        self.targetdir = os.path.join(self.targetdir, self.fname)
 
     def run_configure(self, configure_args='', extra_cmds=' gnu-configize; '):
         return super(SDKBuildProject, self).run_configure(configure_args=(configure_args or '$CONFIGURE_FLAGS'), extra_cmds=extra_cmds)

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


More information about the Openembedded-commits mailing list