From 7a634086f431e0f20a752a0b7c546e7f5881afd4 Mon Sep 17 00:00:00 2001 From: classabbyamp Date: Fri, 3 Mar 2023 14:25:01 -0500 Subject: [PATCH] common/hooks/do-extract/00-distfiles.sh: support .tar.zst bsdtar is built with support for it, so this shouldn't cause issues --- common/hooks/do-extract/00-distfiles.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/common/hooks/do-extract/00-distfiles.sh b/common/hooks/do-extract/00-distfiles.sh index 14503de3ed76..cec16d1dead0 100644 --- a/common/hooks/do-extract/00-distfiles.sh +++ b/common/hooks/do-extract/00-distfiles.sh @@ -56,6 +56,8 @@ hook() { *.tbz) cursufx="tbz";; *.tar.gz) cursufx="tgz";; *.tgz) cursufx="tgz";; + *.tar.zst) cursufx="tzst";; + *.tzst) cursufx="tzst";; *.gz) cursufx="gz";; *.xz) cursufx="xz";; *.bz2) cursufx="bz2";; @@ -74,7 +76,7 @@ hook() { esac case ${cursufx} in - tar|txz|tbz|tlz|tgz|crate) + tar|txz|tbz|tlz|tgz|tzst|crate) $TAR_CMD -x --no-same-permissions --no-same-owner -f $srcdir/$curfile -C "$extractdir" if [ $? -ne 0 ]; then msg_error "$pkgver: extracting $curfile into $XBPS_BUILDDIR.\n"