diff options
| -rw-r--r-- | meta/lib/oeqa/utils/targetbuild.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/lib/oeqa/utils/targetbuild.py b/meta/lib/oeqa/utils/targetbuild.py index d538f6b65f..6177a12eb9 100644 --- a/meta/lib/oeqa/utils/targetbuild.py +++ b/meta/lib/oeqa/utils/targetbuild.py | |||
| @@ -17,9 +17,10 @@ class BuildProject(metaclass=ABCMeta): | |||
| 17 | self.uri = uri | 17 | self.uri = uri |
| 18 | self.archive = os.path.basename(uri) | 18 | self.archive = os.path.basename(uri) |
| 19 | self.localarchive = os.path.join(tmpdir,self.archive) | 19 | self.localarchive = os.path.join(tmpdir,self.archive) |
| 20 | self.fname = re.sub(r'.tar.bz2|tar.gz$', '', self.archive) | ||
| 21 | if foldername: | 20 | if foldername: |
| 22 | self.fname = foldername | 21 | self.fname = foldername |
| 22 | else: | ||
| 23 | self.fname = re.sub(r'\.tar\.bz2$|\.tar\.gz$|\.tar\.xz$', '', self.archive) | ||
| 23 | 24 | ||
| 24 | # Download self.archive to self.localarchive | 25 | # Download self.archive to self.localarchive |
| 25 | def _download_archive(self): | 26 | def _download_archive(self): |
