From 801b093b6731f7c3be4936308d4d60a5479854dd Mon Sep 17 00:00:00 2001 From: Yamashita Yuu Date: Thu, 29 May 2014 21:08:05 +0900 Subject: [PATCH] Support for xz-compressed Python tarballs (fixes #177) --- plugins/python-build/bin/python-build | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugins/python-build/bin/python-build b/plugins/python-build/bin/python-build index 99e77429..752df43a 100755 --- a/plugins/python-build/bin/python-build +++ b/plugins/python-build/bin/python-build @@ -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