From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42753) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gKyDG-00088S-9e for guix-patches@gnu.org; Thu, 08 Nov 2018 23:16:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gKyDF-0007xr-8c for guix-patches@gnu.org; Thu, 08 Nov 2018 23:16:06 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:37873) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gKyDF-0007xT-01 for guix-patches@gnu.org; Thu, 08 Nov 2018 23:16:05 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gKyDC-0001mx-QK for guix-patches@gnu.org; Thu, 08 Nov 2018 23:16:04 -0500 Subject: [bug#33134] [PATCH 4/4] guix-install.sh: Update sys_authorize_build_farms. Resent-Message-ID: From: rsiddharth Date: Thu, 8 Nov 2018 23:15:34 -0500 Message-Id: <20181109041534.4489-1-s@ricketyspace.net> In-Reply-To: <20181109041301.39042-1-s@ricketyspace.net> References: <20181109041301.39042-1-s@ricketyspace.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 33134@debbugs.gnu.org Cc: rsiddharth * etc/guix-install.sh (sys_authorize_build_farms): Don't prompt if AUTO_YN is set. --- etc/guix-install.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/etc/guix-install.sh b/etc/guix-install.sh index 16686ff89..cbcf5316d 100755 --- a/etc/guix-install.sh +++ b/etc/guix-install.sh @@ -355,8 +355,11 @@ sys_enable_guix_daemon() sys_authorize_build_farms() { # authorize the public keys of the two build farms + local yn=$AUTO_YN + while true; do - read -p "Permit downloading pre-built package binaries from the project's build farms? (yes/no) " yn + [[ -n $yn ]] || read -p "Permit downloading pre-built package binaries from the project's build farms? (yes/no) " yn + case $yn in [Yy]*) guix archive --authorize < "${ROOT_HOME}/.guix-profile/share/guix/hydra.gnu.org.pub" && _msg "${PAS}Authorized public key for hydra.gnu.org"; @@ -365,7 +368,7 @@ sys_authorize_build_farms() break;; [Nn]*) _msg "${INF}Skipped authorizing build farm public keys" break;; - *) _msg "Please answer yes or no."; + *) _msg "Please answer yes or no."; yn="" esac done } -- 2.19.1