summaryrefslogtreecommitdiff
path: root/update-me.in
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-06-30 19:54:35 +0200
committerErich Eckner <git@eckner.net>2019-06-30 19:54:35 +0200
commit895fff16858ede7505f258c943b0213f02e34fa9 (patch)
treed4dccf42a55f3edf6e39570836f64935fb542555 /update-me.in
parentd62e2671e79decf3619eb8bca0f6b475de689c25 (diff)
downloadupdate-all-895fff16858ede7505f258c943b0213f02e34fa9.tar.xz
update-me: replace broken keyserver on archlinux
Diffstat (limited to 'update-me.in')
-rw-r--r--update-me.in12
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