summaryrefslogtreecommitdiff
path: root/update-me.in
diff options
context:
space:
mode:
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