summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xconfigure3
-rw-r--r--scripts/functions4
2 files changed, 7 insertions, 0 deletions
diff --git a/configure b/configure
index c645e18..f52af9e 100755
--- a/configure
+++ b/configure
@@ -504,6 +504,9 @@ has_or_abort prog=bzip2
has_or_warn prog=xz \
kconfig=has_xzutils \
err="xz-compressed tarballs will not be used"
+has_or_warn prog=lzma \
+ kconfig=has_lzma \
+ err="lzma-compressed tarballs will not be used"
has_or_abort prog=readlink
has_or_abort prog=objcopy var=objcopy
has_or_abort prog=objdump var=objdump
diff --git a/scripts/functions b/scripts/functions
index bb24264..d2b45cf 100644
--- a/scripts/functions
+++ b/scripts/functions
@@ -403,6 +403,9 @@ CT_DoListTarballExt() {
if [ "${CT_CONFIGURE_has_xzutils}" = "y" ]; then
printf ".tar.xz\n"
fi
+ if [ "${CT_CONFIGURE_has_lzma}" = "y" ]; then
+ printf ".tar.lzma\n"
+ fi
printf ".tar.bz2\n"
printf ".tar.gz\n.tgz\n"
printf ".tar\n"
@@ -757,6 +760,7 @@ CT_Extract() {
tar_opts+=( "-xv" )
case "${ext}" in
.tar.xz) CT_DoExecLog FILE tar "${tar_opts[@]}" --use-compress-program=xz -f "${full_file}";;
+ .tar.lzma) CT_DoExecLog FILE tar "${tar_opts[@]}" --use-compress-program=lzma -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}";;