From 7587153a447bd537c8f138be9ca0a3886a5f1e57 Mon Sep 17 00:00:00 2001 From: Morten Linderud Date: Sun, 21 Feb 2021 22:36:31 +0100 Subject: libmakepkg: Support zstd decompression for sources This enables us to extract files in the source array and ensures that we can decompress files if the uncompressed signature is served. Signed-off-by: Morten Linderud Signed-off-by: Allan McRae --- scripts/libmakepkg/source/file.sh.in | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'scripts/libmakepkg/source') diff --git a/scripts/libmakepkg/source/file.sh.in b/scripts/libmakepkg/source/file.sh.in index b29aeb04..cbaab315 100644 --- a/scripts/libmakepkg/source/file.sh.in +++ b/scripts/libmakepkg/source/file.sh.in @@ -118,6 +118,11 @@ extract_file() { xz) cmd="xz" ;; *) return;; esac ;; + *application/zstd*) + case "$ext" in + zst) cmd="zstd" ;; + *) return;; + esac ;; *) # See if bsdtar can recognize the file if bsdtar -tf "$file" -q '*' &>/dev/null; then -- cgit v1.2.3-54-g00ecf