mirror of
https://github.com/pyenv/pyenv.git
synced 2024-11-21 20:47:00 -05:00
Support for xz-compressed Python tarballs (fixes #177)
This commit is contained in:
parent
2cca695bed
commit
801b093b67
1 changed files with 5 additions and 0 deletions
|
@ -283,6 +283,11 @@ fetch_tarball() {
|
|||
tar_args="${tar_args/z/j}"
|
||||
fi
|
||||
|
||||
if [ "$package_url" != "${package_url%xz}" ]; then
|
||||
package_filename="${package_filename%.gz}.xz"
|
||||
tar_args="${tar_args/z/J}"
|
||||
fi
|
||||
|
||||
if ! reuse_existing_tarball "$package_filename" "$checksum"; then
|
||||
local tarball_filename=$(basename $package_url)
|
||||
echo "Downloading ${tarball_filename}..." >&2
|
||||
|
|
Loading…
Reference in a new issue