From cf97e307a64e5a74014b7a405f592379eeca31b6 Mon Sep 17 00:00:00 2001 From: Tasos Sahanidis Date: Sat, 11 May 2024 10:34:11 +0300 Subject: extra/python-xcffib: Fix version string parsing --- extra/python-xcffib/xcffibgen-custom | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'extra') diff --git a/extra/python-xcffib/xcffibgen-custom b/extra/python-xcffib/xcffibgen-custom index 69f70760..9e23f120 100755 --- a/extra/python-xcffib/xcffibgen-custom +++ b/extra/python-xcffib/xcffibgen-custom @@ -1,7 +1,8 @@ #!/usr/bin/env -S bash -x mirror='http://ftp.otenet.gr/linux/archlinux' -version="$1" +# Strip arch32 specific part of the version string +version="${1%.*}" shift while [[ $# -gt 0 ]]; do @@ -16,8 +17,8 @@ while [[ $# -gt 0 ]]; do fi done -curl -O "${mirror}/extra/os/x86_64/python-xcffib-${version}-any.pkg.tar.zst" -curl -O "${mirror}/extra/os/x86_64/python-xcffib-${version}-any.pkg.tar.zst.sig" +curl --fail -O "${mirror}/extra/os/x86_64/python-xcffib-${version}-any.pkg.tar.zst" +curl --fail -O "${mirror}/extra/os/x86_64/python-xcffib-${version}-any.pkg.tar.zst.sig" if pacman-key -v "python-xcffib-${version}-any.pkg.tar.zst.sig" "python-xcffib-${version}-any.pkg.tar.zst"; then tar -xf "python-xcffib-${version}-any.pkg.tar.zst" -- cgit v1.2.3-70-g09d2