summaryrefslogtreecommitdiff
path: root/buildstream/plugins/sources/tar.py
diff options
context:
space:
mode:
authorJürg Billeter <j@bitron.ch>2018-02-26 06:47:27 +0100
committerJürg Billeter <j@bitron.ch>2018-02-26 07:20:03 +0100
commitc4ea15f7caa1d48efbd2e5383339263671c9444d (patch)
tree55ba5490f1e474e0fd4df725378e500d4d3fe16b /buildstream/plugins/sources/tar.py
parent855df10ca4346a5c30a8a59c32dfbbed0c34c988 (diff)
downloadbuildstream-juerg/tar-tracking.tar.gz
_downloadablefilesource.py: Support version trackingjuerg/tar-tracking
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