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.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/buildstream/plugins/sources/zip.py b/src/buildstream/plugins/sources/zip.py
index 47933c8eb..47823dfde 100644
--- a/src/buildstream/plugins/sources/zip.py
+++ b/src/buildstream/plugins/sources/zip.py
@@ -162,7 +162,7 @@ class ZipSource(DownloadableFileSource):
# Avoid considering the '.' directory, if any is included in the archive
# this is to avoid the default 'base-dir: *' value behaving differently
# depending on whether the archive was encoded with a leading '.' or not
- elif member.filename == "." or member.filename == "./":
+ if member.filename == "." or member.filename == "./":
continue
yield member.filename