diff options
author | merakor <cem@ckyln.com> | 2021-02-25 14:59:54 +0000 |
---|---|---|
committer | merakor <cem@ckyln.com> | 2021-02-25 14:59:54 +0000 |
commit | d5cdfa046943ba90fad75ac2854900e256630d65 (patch) | |
tree | 6ddfb4ca513b50c1d97190f8fdcb2ff1a46f9de9 /src | |
parent | 88712bd6769fd416ab089e415e87965c62747962 (diff) | |
download | cpt-d5cdfa046943ba90fad75ac2854900e256630d65.tar.gz |
cpt: add support for lz compression/decompression
FossilOrigin-Name: d184f8e784279a92746e9de38b1b2c7359534204ed0f75575a07ddac3fbac4e8
Diffstat (limited to 'src')
-rw-r--r-- | src/cpt-lib.in | 2 |
1 files changed, 2 insertions, 0 deletions
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" |