summaryrefslogtreecommitdiff
path: root/buildstream/plugins/sources/tar.py
diff options
context:
space:
mode:
Diffstat (limited to 'buildstream/plugins/sources/tar.py')
-rw-r--r--buildstream/plugins/sources/tar.py6
1 files changed, 3 insertions, 3 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()