1.1 --- a/scripts/functions Wed May 04 00:04:23 2011 +0200
1.2 +++ b/scripts/functions Mon Aug 22 09:38:19 2011 +0200
1.3 @@ -400,6 +400,9 @@
1.4 # Build up the list of allowed tarball extensions
1.5 # Add them in the prefered order; most preferred comes first
1.6 CT_DoListTarballExt() {
1.7 + if [ "${CT_CONFIGURE_has_xzutils}" = "y" ]; then
1.8 + printf ".tar.xz\n"
1.9 + fi
1.10 printf ".tar.bz2\n"
1.11 printf ".tar.gz\n.tgz\n"
1.12 printf ".tar\n"
1.13 @@ -753,6 +756,7 @@
1.14 tar_opts+=( "-C" "${basename}" )
1.15 tar_opts+=( "-xv" )
1.16 case "${ext}" in
1.17 + .tar.xz) CT_DoExecLog FILE tar "${tar_opts[@]}" --use-compress-program=xz -f "${full_file}";;
1.18 .tar.bz2) CT_DoExecLog FILE tar "${tar_opts[@]}" -j -f "${full_file}";;
1.19 .tar.gz|.tgz) CT_DoExecLog FILE tar "${tar_opts[@]}" -z -f "${full_file}";;
1.20 .tar) CT_DoExecLog FILE tar "${tar_opts[@]}" -f "${full_file}";;