It can now be invoked via `python -m msys2_autobuild` or by installing it, which adds a "msys2-autobuild" script. This is a first step towards splitting up the code. The HTTP cache is now stored in the working directory instead of the source directory.
18 lines
317 B
Bash
18 lines
317 B
Bash
#!/bin/bash
|
|
|
|
. PKGBUILD
|
|
|
|
set -e
|
|
|
|
_keyserver=(
|
|
"keyserver.ubuntu.com"
|
|
"keys.gnupg.net"
|
|
"pgp.mit.edu"
|
|
"keys.openpgp.org"
|
|
)
|
|
for key in "${validpgpkeys[@]}"; do
|
|
for server in "${_keyserver[@]}"; do
|
|
timeout 20 /usr/bin/gpg --keyserver "${server}" --recv "${key}" && break || true
|
|
done
|
|
done
|