diff options
author | Erich Eckner <git@eckner.net> | 2019-06-30 19:54:35 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2019-06-30 19:54:35 +0200 |
commit | 895fff16858ede7505f258c943b0213f02e34fa9 (patch) | |
tree | d4dccf42a55f3edf6e39570836f64935fb542555 | |
parent | d62e2671e79decf3619eb8bca0f6b475de689c25 (diff) | |
download | update-all-895fff16858ede7505f258c943b0213f02e34fa9.tar.xz |
update-me: replace broken keyserver on archlinux
-rw-r--r-- | update-me.in | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/update-me.in b/update-me.in index 5c7c5ea..bb8fd68 100644 --- a/update-me.in +++ b/update-me.in @@ -8,6 +8,18 @@ if which check-kernel >/dev/null 2>&1; then postCmds+=('check-kernel -r') fi +if [ -d '#ETCDIR#/pacman.d' ] + postCmds=( + 'fix-pacman-gpg-keyserver-conf' + "${postCmds[@]}" + ) + fix-pacman-gpg-keyserver-conf() { + sed -i ' + s@^keyserver hkp://pool\.sks-keyservers\.net$@keyserver hkp://keys.gnupg.net@ + ' '#ETCDIR/pacman.d/gnupg/gpg.conf' '/var/lib/archbuild'/*-build/*/'#ETCDIR/pacman.d/gnupg/gpg.conf' || true + } +fi + . #ETCDIR#/update-me.conf if "${hasSudo}"; then |