diff options
author | merakor <cem@ckyln.com> | 2020-05-11 13:45:42 +0000 |
---|---|---|
committer | merakor <cem@ckyln.com> | 2020-05-11 13:45:42 +0000 |
commit | 46f4f35e320015bbadcf3e2fbf130f8cbdb2a48e (patch) | |
tree | 1a9abbc13bf29f0c5fb84c60274a32db31cc8a7e | |
parent | 5ceab56b85cda2619492e2246c177e1ae8c7d9e8 (diff) | |
download | cpt-46f4f35e320015bbadcf3e2fbf130f8cbdb2a48e.tar.gz |
kiss: add support for decompressing .txz tarballs
FossilOrigin-Name: 8d6d6860ac86d347256969ec6247498145dc2f85b1375bbc66bc2f3ba7d5afd0
-rwxr-xr-x | kiss | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -94,7 +94,7 @@ decompress() { case $1 in *.tar) cat ;; *.bz2) bzip2 -cd ;; - *.xz) xz -dcT 0 ;; + *.xz|*.txz) xz -dcT 0 ;; *.tgz|*.gz) gzip -cd ;; *.zst) zstd -cd ;; esac < "$1" @@ -315,7 +315,7 @@ pkg_extract() { # Only 'tar' an 'zip' archives are currently supported for # extraction. Other filetypes are simply copied to '$mak_dir' # which allows for manual extraction. - *://*.tar|*://*.tar.??|*://*.tar.???|*://*.tar.????|*://*.tgz) + *://*.tar|*://*.tar.??|*://*.tar.???|*://*.tar.????|*://*.tgz|*://*.txz) decompress "$src_dir/$1/${src##*/}" > .ktar |