cpt

[ARCHIVED] Carbs Packaging Tools
git clone git://git.ckyln.com/~cem/cpt.git
Log | Files | Refs | README | LICENSE

commit dd25f8e9c01f84b5b2dfaba844daef06aee9a601
parent 3f3f67bf289625870e8df8d80158465ae70e6343
Author: Cem Keylan <cem@ckyln.com>
Date:   Wed, 15 Apr 2020 13:16:46 +0300

kiss-export: fallback to gz if KISS_COMPRESS is not known

Diffstat:
Mcontrib/kiss-export | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/contrib/kiss-export b/contrib/kiss-export @@ -18,12 +18,13 @@ while read -r file; do done < "$KISS_ROOT/var/db/kiss/installed/$pkg/manifest" # Turn the list of files back into a package. -KISS_COMPRESS="${KISS_COMPRESS:-gz}" +: "${KISS_COMPRESS:=gz}" tar cf - -C / -- "$@" | case "$KISS_COMPRESS" in bz2) bzip2 -z ;; gz) gzip -6 ;; xz) xz -zT 0 ;; zst) zstd -3 ;; + *) gzip -6 ;; # Fallback to gzip esac > "$pkg#$ver-$rel.tar.$KISS_COMPRESS" printf 'tarball created in %s\n' "$PWD/$pkg#$ver-$rel.tar.$KISS_COMPRESS"