summaryrefslogtreecommitdiff
path: root/buildstream/plugins/sources/tar.py
diff options
context:
space:
mode:
Diffstat (limited to 'buildstream/plugins/sources/tar.py')
-rw-r--r--buildstream/plugins/sources/tar.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/buildstream/plugins/sources/tar.py b/buildstream/plugins/sources/tar.py
index 284554fe1..3f020ae36 100644
--- a/buildstream/plugins/sources/tar.py
+++ b/buildstream/plugins/sources/tar.py
@@ -71,7 +71,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):
@@ -92,7 +92,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