fix(archlinux): update URL and key server in pacmanallkeys (#9569)

- Added follow redirects curl flag to fix the 301 response
- Updated trusted users URL format
- Changed from `pgp.mit.edu` keyserver to `keyserver.ubuntu.com` keyserver
This commit is contained in:
Gabriel Corral 2021-01-03 06:58:52 -06:00 committed by GitHub
parent 9e5f280f87
commit 66e0438d47
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -188,8 +188,8 @@ function pacdisowned() {
} }
function pacmanallkeys() { function pacmanallkeys() {
curl -s https://www.archlinux.org/people/{developers,trustedusers}/ | \ curl -sL https://www.archlinux.org/people/{developers,trusted-users}/ | \
awk -F\" '(/pgp.mit.edu/) { sub(/.*search=0x/,""); print $1}' | \ awk -F\" '(/keyserver.ubuntu.com/) { sub(/.*search=0x/,""); print $1}' | \
xargs sudo pacman-key --recv-keys xargs sudo pacman-key --recv-keys
} }