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.
This commit is contained in:
Tobias Geerinckx-Rice 2022-10-16 02:00:03 +02:00
parent 88ec7bf616
commit 9a0a786c25
No known key found for this signature in database
GPG Key ID: 0DB0FF884F556D79

View File

@ -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: