Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTasos Sahanidis <tasos@tasossah.com>2024-05-11 10:34:11 +0300
committerTasos Sahanidis <tasos@tasossah.com>2024-05-11 10:34:11 +0300
commitcf97e307a64e5a74014b7a405f592379eeca31b6 (patch)
treee6475ffeb8d32e679b4f27b85e9166cc672791e0
parent0b8ed5444e6bd243222170139ae4a8dfffef797b (diff)
extra/python-xcffib: Fix version string parsing
-rwxr-xr-xextra/python-xcffib/xcffibgen-custom7
1 files changed, 4 insertions, 3 deletions
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"