This is an automated email from the ASF dual-hosted git repository. tvb pushed a commit to branch jonathan/mirror-client-sourcedownloader-tidy in repository https://gitbox.apache.org/repos/asf/buildstream.git
commit afa5c034e0caf046ed9104a6ad44d704331e81c8 Author: Jonathan Maw <[email protected]> AuthorDate: Fri Jun 22 17:37:39 2018 +0100 tar.py: Update to handle alias overrides i.e. self.url was done away with --- buildstream/plugins/sources/tar.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/buildstream/plugins/sources/tar.py b/buildstream/plugins/sources/tar.py index 324006b..d19c9c7 100644 --- a/buildstream/plugins/sources/tar.py +++ b/buildstream/plugins/sources/tar.py @@ -75,7 +75,7 @@ class TarSource(DownloadableFileSource): def preflight(self): self.host_lzip = None - if self.url.endswith('.lz'): + if self.original_url.endswith('.lz'): self.host_lzip = utils.get_host_tool('lzip') def get_unique_key(self): @@ -96,7 +96,7 @@ class TarSource(DownloadableFileSource): @contextmanager def _get_tar(self): - if self.url.endswith('.lz'): + if self.original_url.endswith('.lz'): with self._run_lzip() as lzip_dec: with tarfile.open(fileobj=lzip_dec, mode='r:') as tar: yield tar
