[oe-commits] [openembedded-core] 23/38: oeqa/targetbuild: fix folder name estimate logic
git at git.openembedded.org
git at git.openembedded.org
Thu Jun 23 13:27:25 UTC 2016
rpurdie pushed a commit to branch master
in repository openembedded-core.
commit ac99135b009a1066486ed2afb2f298d0a5a3a854
Author: Ross Burton <ross.burton at intel.com>
AuthorDate: Mon Jun 20 17:32:31 2016 +0100
oeqa/targetbuild: fix folder name estimate logic
The re.sub() used to transform a tarball into a best guess folder name wasn't
right, as there isn't enough escaping and tar.xz was missing.
Signed-off-by: Ross Burton <ross.burton at intel.com>
---
meta/lib/oeqa/utils/targetbuild.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/meta/lib/oeqa/utils/targetbuild.py b/meta/lib/oeqa/utils/targetbuild.py
index d538f6b..6177a12 100644
--- a/meta/lib/oeqa/utils/targetbuild.py
+++ b/meta/lib/oeqa/utils/targetbuild.py
@@ -17,9 +17,10 @@ class BuildProject(metaclass=ABCMeta):
self.uri = uri
self.archive = os.path.basename(uri)
self.localarchive = os.path.join(tmpdir,self.archive)
- self.fname = re.sub(r'.tar.bz2|tar.gz$', '', self.archive)
if foldername:
self.fname = foldername
+ else:
+ self.fname = re.sub(r'\.tar\.bz2$|\.tar\.gz$|\.tar\.xz$', '', self.archive)
# Download self.archive to self.localarchive
def _download_archive(self):
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Openembedded-commits
mailing list