[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
22/33: guix-install.sh: Time out fetching OpenPGP keys.
From: |
guix-commits |
Subject: |
22/33: guix-install.sh: Time out fetching OpenPGP keys. |
Date: |
Fri, 21 Oct 2022 13:20:54 -0400 (EDT) |
nckx pushed a commit to branch master
in repository guix.
commit 9a0a786c2555b7e9bcef2a27dff8b82c002799ab
Author: Tobias Geerinckx-Rice <me@tobias.gr>
AuthorDate: Sun Oct 16 02:00:03 2022 +0200
guix-install.sh: Time out fetching OpenPGP keys.
The default 900s provide no useful backstop in interactive use.
* etc/guix-install.sh (chk_gpg_keyring): Add a 30s wget --timeout.
---
etc/guix-install.sh | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/etc/guix-install.sh b/etc/guix-install.sh
index 3604c71ed6..3fad9deb1f 100755
--- a/etc/guix-install.sh
+++ b/etc/guix-install.sh
@@ -141,8 +141,10 @@ chk_gpg_keyring()
if prompt_yes_no "${INF}The following OpenPGP public key is \
required to verify the Guix binary signature: $gpg_key_id.
Would you like me to fetch it for you?"; then
+ # Use a reasonable time-out here so users don't report silent
+ # ‘freezes’ when Savannah goes out to lunch, as has happened.
wget "https://sv.gnu.org/people/viewgpg.php?user_id=$user_id" \
- --no-verbose -O- | gpg --import -
+ --timeout=30 --no-verbose -O- | gpg --import -
else
_err "${ERR}Missing OpenPGP public key ($gpg_key_id).
Fetch it with this command:
- 19/33: gnu: imapfilter: Update to 2.7.6., (continued)
- 19/33: gnu: imapfilter: Update to 2.7.6., guix-commits, 2022/10/21
- 25/33: guix-install.sh: Warn if we suspect dodgy automation., guix-commits, 2022/10/21
- 01/33: gnu: audit: Update to 3.0.9., guix-commits, 2022/10/21
- 03/33: gnu: jitterentropy-rngd: Use G-expressions., guix-commits, 2022/10/21
- 04/33: gnu: criu: Update to 3.17.1., guix-commits, 2022/10/21
- 15/33: gnu: dosbox-staging: Update to 0.79.1., guix-commits, 2022/10/21
- 09/33: gnu: pd: Remove trailing #t from phases., guix-commits, 2022/10/21
- 17/33: gnu: dnsmasq: Update to 2.87., guix-commits, 2022/10/21
- 21/33: gnu: lldpd: Update to 1.0.15., guix-commits, 2022/10/21
- 20/33: gnu: imapfilter: Use G-expressions., guix-commits, 2022/10/21
- 22/33: guix-install.sh: Time out fetching OpenPGP keys.,
guix-commits <=
- 27/33: gnu: diffoscope: Update to 224., guix-commits, 2022/10/21
- 31/33: gnu: cloc: Update to 1.94., guix-commits, 2022/10/21
- 32/33: gnu: dmenu: Update to 5.2., guix-commits, 2022/10/21
- 33/33: gnu: libfs: Update to 1.0.9., guix-commits, 2022/10/21
- 10/33: gnu: pd: Remove input labels., guix-commits, 2022/10/21