From: Ross Burton Date: Thu, 19 Jul 2018 23:16:16 +0000 (+0100) Subject: oeqa/sdk/sdkbuildproject: use os.path.join X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~17262 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ed0413babaf10ccf729472f603bbe32d84ba1931;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git oeqa/sdk/sdkbuildproject: use os.path.join Instead of mushing two paths together and hoping that the slashes line up correctly, use os.path.join. Signed-off-by: Ross Burton --- diff --git a/meta/lib/oeqa/sdk/utils/sdkbuildproject.py b/meta/lib/oeqa/sdk/utils/sdkbuildproject.py index 0519911e8f4..6fed73e3505 100644 --- a/meta/lib/oeqa/sdk/utils/sdkbuildproject.py +++ b/meta/lib/oeqa/sdk/utils/sdkbuildproject.py @@ -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