Skip to content

Commit

Permalink
Fix handling of .tar.xzg in bootstrap
Browse files Browse the repository at this point in the history
The macOS build includes a `.tar.xzg` file, which 1bfe80a does not
properly handle. This simply adds this extension to the list which
should be extracted with tar instead of zip.
  • Loading branch information
rcloran authored and Tomcus committed Feb 4, 2025
1 parent 18b4c3c commit 25f8e7d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion utils/bootstrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,9 @@ def download_and_unzip(url: str, directory: Path):
print('Extracting ' + file, end=" ")

# Check if tar or zip
if any(url.endswith(ext) for ext in ['.tar.bz2', '.tar.gz', '.tar.xz']):
if any(
url.endswith(ext)
for ext in ['.tar.bz2', '.tar.gz', '.tar.xz', 'tar.xzg']):
with tarfile.open(filename) as obj:
obj.extractall(path=extract_dir)
else:
Expand Down

0 comments on commit 25f8e7d

Please sign in to comment.