summaryrefslogtreecommitdiff
path: root/buildstream/plugins/sources/zip.py
diff options
context:
space:
mode:
authorJonathan Maw <jonathan.maw@codethink.co.uk>2018-08-28 16:12:45 +0100
committerJonathan Maw <jonathan.maw@codethink.co.uk>2018-10-30 13:15:48 +0000
commit2c0d7a614de63eacda257fbfc8898bcdb2a79492 (patch)
treec37337efc98b25f674503136222ee72192345242 /buildstream/plugins/sources/zip.py
parent7f8d0b9cac97b830b718b00ed3db9096c06d525c (diff)
downloadbuildstream-jonathan/expose-downloadablefilesource.tar.gz
Make DownloadableFileSource clearly define public and private fieldsjonathan/expose-downloadablefilesource
TarSource and RemoteSource now parse url from the config themselves, because they need it, but the url is private.
Diffstat (limited to 'buildstream/plugins/sources/zip.py')
-rw-r--r--buildstream/plugins/sources/zip.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/buildstream/plugins/sources/zip.py b/buildstream/plugins/sources/zip.py
index dafd6f500..5773e0dba 100644
--- a/buildstream/plugins/sources/zip.py
+++ b/buildstream/plugins/sources/zip.py
@@ -83,7 +83,7 @@ class ZipSource(DownloadableFileSource):
noexec_rights = exec_rights & ~(stat.S_IXUSR | stat.S_IXGRP | stat.S_IXOTH)
try:
- with zipfile.ZipFile(self._get_mirror_file()) as archive:
+ with zipfile.ZipFile(self.get_mirror_file()) as archive:
base_dir = None
if self.base_dir:
base_dir = self._find_base_dir(archive, self.base_dir)