Browse Source

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
Gabriel Corral 4 years ago
parent
commit
66e0438d47
1 changed files with 2 additions and 2 deletions
  1. 2 2
      plugins/archlinux/archlinux.plugin.zsh

+ 2 - 2
plugins/archlinux/archlinux.plugin.zsh

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