summaryrefslogtreecommitdiff
path: root/src/buildstream/plugins/sources/zip.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/buildstream/plugins/sources/zip.py')
-rw-r--r--src/buildstream/plugins/sources/zip.py10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/buildstream/plugins/sources/zip.py b/src/buildstream/plugins/sources/zip.py
index 69324b29d..47933c8eb 100644
--- a/src/buildstream/plugins/sources/zip.py
+++ b/src/buildstream/plugins/sources/zip.py
@@ -79,9 +79,7 @@ class ZipSource(DownloadableFileSource):
return super().get_unique_key() + [self.base_dir]
def stage(self, directory):
- exec_rights = (stat.S_IRWXU | stat.S_IRWXG | stat.S_IRWXO) & ~(
- stat.S_IWGRP | stat.S_IWOTH
- )
+ exec_rights = (stat.S_IRWXU | stat.S_IRWXG | stat.S_IRWXO) & ~(stat.S_IWGRP | stat.S_IWOTH)
noexec_rights = exec_rights & ~(stat.S_IXUSR | stat.S_IXGRP | stat.S_IXOTH)
try:
@@ -173,11 +171,7 @@ class ZipSource(DownloadableFileSource):
paths = self._list_archive_paths(archive)
matches = sorted(list(utils.glob(paths, pattern)))
if not matches:
- raise SourceError(
- "{}: Could not find base directory matching pattern: {}".format(
- self, pattern
- )
- )
+ raise SourceError("{}: Could not find base directory matching pattern: {}".format(self, pattern))
return matches[0]