From d5cdfa046943ba90fad75ac2854900e256630d65 Mon Sep 17 00:00:00 2001 From: merakor Date: Thu, 25 Feb 2021 14:59:54 +0000 Subject: cpt: add support for lz compression/decompression FossilOrigin-Name: d184f8e784279a92746e9de38b1b2c7359534204ed0f75575a07ddac3fbac4e8 --- src/cpt-lib.in | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/cpt-lib.in b/src/cpt-lib.in index 0e80577..8a5783a 100644 --- a/src/cpt-lib.in +++ b/src/cpt-lib.in @@ -462,6 +462,7 @@ decompress() { case $1 in *.tar) cat ;; *.bz2) bzip2 -cd ;; + *.lz) lzip -cd ;; *.xz|*.txz) xz -dcT 0 ;; *.tgz|*.gz) gzip -cd ;; *.zst) zstd -cd ;; @@ -998,6 +999,7 @@ pkg_tar() { xz) xz -zT 0 ;; gz) gzip -6 ;; zst) zstd -3 ;; + lz) lzip -6 ;; *) gzip -6 ;; # Fallback to gzip esac \ > "$bin_dir/$1#$version-$release.tar.$CPT_COMPRESS" -- cgit v1.2.3