]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
oeqa/sdk/sdkbuildproject: use os.path.join
authorRoss Burton <ross.burton@intel.com>
Thu, 19 Jul 2018 23:16:16 +0000 (00:16 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 26 Jul 2018 12:16:31 +0000 (13:16 +0100)
Instead of mushing two paths together and hoping that the slashes line up
correctly, use os.path.join.

Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/lib/oeqa/sdk/utils/sdkbuildproject.py

index 0519911e8f4d48fefa4aaca5a7ca9e4d4e18948b..6fed73e35051cd18e239367787d72ada53d17e94 100644 (file)
@@ -20,10 +20,9 @@ class SDKBuildProject(BuildProject):
         BuildProject.__init__(self, uri, foldername, tmpdir=testpath, dl_dir=dl_dir)
 
     def download_archive(self):
-
         self._download_archive()
 
-        cmd = 'tar xf %s%s -C %s' % (self.targetdir, self.archive, self.targetdir)
+        cmd = 'tar xf %s -C %s' % (os.path.join(self.targetdir, self.archive), self.targetdir)
         subprocess.check_output(cmd, shell=True)
 
         #Change targetdir to project folder