diff -r aa09a36c3d36 -r a52574521bea scripts/functions --- a/scripts/functions Wed May 04 00:04:23 2011 +0200 +++ b/scripts/functions Thu Aug 18 16:05:48 2011 +0200 @@ -400,6 +400,9 @@ # Build up the list of allowed tarball extensions # Add them in the prefered order; most preferred comes first CT_DoListTarballExt() { + if [ "${CT_CONFIGURE_has_xzutils}" = "y" ]; then + printf ".tar.xz\n" + fi printf ".tar.bz2\n" printf ".tar.gz\n.tgz\n" printf ".tar\n" @@ -753,6 +756,7 @@ tar_opts+=( "-C" "${basename}" ) tar_opts+=( "-xv" ) case "${ext}" in + .tar.xz) CT_DoExecLog FILE tar "${tar_opts[@]}" --use-compress-program=xz -f "${full_file}";; .tar.bz2) CT_DoExecLog FILE tar "${tar_opts[@]}" -j -f "${full_file}";; .tar.gz|.tgz) CT_DoExecLog FILE tar "${tar_opts[@]}" -z -f "${full_file}";; .tar) CT_DoExecLog FILE tar "${tar_opts[@]}" -f "${full_file}";;