Support for xz-compressed Python tarballs (fixes #177)

This commit is contained in:
Yamashita Yuu 2014-05-29 21:08:05 +09:00
parent 2cca695bed
commit 801b093b67

View file

@ -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