Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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"