Add support for lzma compressed tar archives

This commit is contained in:
Tom G. Christensen 2019-06-02 09:22:41 +02:00
parent 3cd10f85d4
commit 78e516ad61

View File

@ -398,7 +398,7 @@ get_files()
# unpack(): Unpack source
# params: $1 = source number (arrayindex)
# It will detect filetype and unpack
# .tar, .tgz, .gz, .bz2, .xz, .zip and .Z supported
# .tar, .tgz, .gz, .bz2, .xz, .lzma, .zip and .Z supported
unpack()
{
local source=${source[$1]}
@ -435,7 +435,7 @@ unpack()
'bz2') ${__bzip2} -dc $absfile | ${__tar} -xf -;;
'Z') ${__gzip} -dc $absfile | ${__tar} -xf -;;
'tgz') ${__gzip} -dc $absfile | ${__tar} -xf -;;
'xz') ${__xz} -dc $absfile | ${__tar} -xf -;;
'xz'|'lzma') ${__xz} -dc $absfile | ${__tar} -xf -;;
'lz') ${__lzip} -dc $absfile | ${__tar} -xf -;;
'zip') ${__unzip} -q $absfile;;
*) error $E_BAD_COMPRESS unpack