66e0438d4788d0a0cdc107b3975418f1a572e354

Author
Gabriel Corral <cascadingstyletrees@users.noreply.github.com>
Committer
GitHub <noreply@github.com>
Date

Message

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

Diff

 1diff --git a/plugins/archlinux/archlinux.plugin.zsh b/plugins/archlinux/archlinux.plugin.zsh
 2index c72e06dc202c9ae1fb2b5cf65d4aaea971b3dbdb..32f09cef906a6dad550d8fa7343702eab2ea97eb 100644
 3--- a/plugins/archlinux/archlinux.plugin.zsh
 4+++ b/plugins/archlinux/archlinux.plugin.zsh
 5@@ -188,8 +188,8 @@ function pacdisowned() {
 6 }
 7 
 8 function pacmanallkeys() {
 9-  curl -s https://www.archlinux.org/people/{developers,trustedusers}/ | \
10-    awk -F\" '(/pgp.mit.edu/) { sub(/.*search=0x/,""); print $1}' | \
11+  curl -sL https://www.archlinux.org/people/{developers,trusted-users}/ | \
12+    awk -F\" '(/keyserver.ubuntu.com/) { sub(/.*search=0x/,""); print $1}' | \
13     xargs sudo pacman-key --recv-keys
14 }
15