1
0
mirror of https://github.com/pyenv/pyenv.git synced 2025-11-12 05:23:47 -05:00

Use .tar.xz archive only if tar supports -J (especially on *BSD) (#654)

This commit is contained in:
Yamashita, Yuu
2016-07-25 01:17:22 +00:00
parent e93ae00ca1
commit e0fdded2cd
20 changed files with 100 additions and 19 deletions

View File

@@ -473,6 +473,11 @@ download_tarball() {
fi
}
has_tar_xz_support() {
local tarxz="$(mktemp "XXXXXXXX.tar.xz")"
tar Jcf "${tarxz}" /dev/null 1>/dev/null 2>&1
}
fetch_git() {
local package_name="$1"
local git_url="$2"