mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01:00
Unpack files with any kind of supported compression, not just gzip
This commit is contained in:
parent
7abb8347ca
commit
b8a6ee3256
1 changed files with 1 additions and 1 deletions
|
@ -118,6 +118,6 @@ def downloadAndExtract(url, destPath, hash=None, hasher=hashlib.sha512(), isZip=
|
|||
zip.extractall(destPath)
|
||||
else:
|
||||
# Extract the archive
|
||||
with tarfile.open(tempFileName, 'r:gz') as tgz:
|
||||
with tarfile.open(tempFileName, 'r:*') as tgz:
|
||||
tgz.extractall(destPath)
|
||||
os.remove(tempFileName)
|
||||
|
|
Loading…
Reference in a new issue