From 60ed2c0a1bc6f3fccf7c67adc48b4b1ffff3155e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Pierret=20=28fepitre=29?= Date: Sat, 22 Aug 2020 15:19:24 +0200 Subject: [PATCH] Workaround for gpg not resolving key servers used behing proxy See QubesOS/qubes-issues#6013 --- network/update-proxy-configs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/network/update-proxy-configs b/network/update-proxy-configs index 26639cf..7bea1f3 100755 --- a/network/update-proxy-configs +++ b/network/update-proxy-configs @@ -151,4 +151,12 @@ if [ -e /etc/portage/make.conf ]; then update_conf /etc/portage/make.conf "http_proxy=\"$PROXY_ADDR\" https_proxy=\"$PROXY_ADDR\" RSYNC_PROXY=\"${PROXY_ADDR_BASE}\"" + + # Current workaround for gpg not resolving key servers used behing proxy + # See QubesOS/qubes-issues#6013 + if [ -n "$PROXY_ADDR" ]; then + update_conf /etc/hosts "127.0.0.1 keys.gentoo.org keys.gnupg.net" + else + update_conf /etc/hosts "" + fi fi