Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib/common-functions
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2020-01-03 13:26:28 +0100
committerErich Eckner <git@eckner.net>2020-01-03 13:26:28 +0100
commit9009a5fec52c5820fc90a68317bcc29cdbb42da1 (patch)
tree7b6282369dfa8cfc3cbd224b9dabf79ca4a5d87a /lib/common-functions
parent089cbcdf1c5cedcb4157cdd164ee7510139c1904 (diff)
learn to handle zst, too
Diffstat (limited to 'lib/common-functions')
-rwxr-xr-xlib/common-functions3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/common-functions b/lib/common-functions
index 6f175af..e7e44b9 100755
--- a/lib/common-functions
+++ b/lib/common-functions
@@ -759,6 +759,9 @@ trigger_mirror_refreshs() {
extract_pkgname_epoch_pkgver_pkgrel_sub_pkgrel_arch_from_package_name() {
pkgname="$1"
pkgname="${pkgname%.pkg.tar.xz}"
+ if [ "${pkgname}" = "$1" ]; then
+ pkgname="${pkgname%.pkg.tar.zst}"
+ fi
arch="${pkgname##*-}"
pkgname="${pkgname%-*}"
sub_pkgrel="${pkgname##*-}"