summaryrefslogtreecommitdiff
path: root/buildstream/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'buildstream/plugins')
-rw-r--r--buildstream/plugins/sources/tar.py6
-rw-r--r--buildstream/plugins/sources/zip.py4
2 files changed, 5 insertions, 5 deletions
diff --git a/buildstream/plugins/sources/tar.py b/buildstream/plugins/sources/tar.py
index e32cc3dc8..7814679c7 100644
--- a/buildstream/plugins/sources/tar.py
+++ b/buildstream/plugins/sources/tar.py
@@ -127,7 +127,7 @@ class TarSource(DownloadableFileSource):
if not base_dir.endswith(os.sep):
base_dir = base_dir + os.sep
- l = len(base_dir)
+ L = len(base_dir)
for member in tar.getmembers():
# First, ensure that a member never starts with `./`
@@ -145,9 +145,9 @@ class TarSource(DownloadableFileSource):
# base directory.
#
if member.type == tarfile.LNKTYPE:
- member.linkname = member.linkname[l:]
+ member.linkname = member.linkname[L:]
- member.path = member.path[l:]
+ member.path = member.path[L:]
yield member
# We want to iterate over all paths of a tarball, but getmembers()
diff --git a/buildstream/plugins/sources/zip.py b/buildstream/plugins/sources/zip.py
index d3ce0f16d..0bbb2cd27 100644
--- a/buildstream/plugins/sources/zip.py
+++ b/buildstream/plugins/sources/zip.py
@@ -121,13 +121,13 @@ class ZipSource(DownloadableFileSource):
if not base_dir.endswith(os.sep):
base_dir = base_dir + os.sep
- l = len(base_dir)
+ L = len(base_dir)
for member in archive.infolist():
if member.filename == base_dir:
continue
if member.filename.startswith(base_dir):
- member.filename = member.filename[l:]
+ member.filename = member.filename[L:]
yield member
# We want to iterate over all paths of an archive, but namelist()