diff --git a/bindings/python/repository.py b/bindings/python/repository.py index 9667c7242..9ea3ac023 100644 --- a/bindings/python/repository.py +++ b/bindings/python/repository.py @@ -180,7 +180,7 @@ def safe_extract(tar, path=".", members=None, *, numeric_owner=False): def _archive_name_without_extension(self, url: URL): o = urlparse(url) fname = os.path.basename(o.path) # something tar.gz. - fname_without_extension = fname.replace(".tar.gz", "") + fname_without_extension = ".".join(fname.split(".")[:3]) return fname_without_extension