diff options
author | Ross Burton <ross.burton@intel.com> | 2018-07-20 00:16:16 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-07-26 13:16:31 +0100 |
commit | ed0413babaf10ccf729472f603bbe32d84ba1931 (patch) | |
tree | 256802c4a655897ae4bcebc3e138a998d39cbda1 /meta | |
parent | c6eef46747fe58bb2310be4f06d2fa9b67901d72 (diff) | |
download | openembedded-core-ed0413babaf10ccf729472f603bbe32d84ba1931.tar.gz openembedded-core-ed0413babaf10ccf729472f603bbe32d84ba1931.tar.bz2 openembedded-core-ed0413babaf10ccf729472f603bbe32d84ba1931.zip |
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 <ross.burton@intel.com>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/lib/oeqa/sdk/utils/sdkbuildproject.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/meta/lib/oeqa/sdk/utils/sdkbuildproject.py b/meta/lib/oeqa/sdk/utils/sdkbuildproject.py index 0519911e8f..6fed73e350 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 |