From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id eERgM67zOmOd8gAAbAwnHQ (envelope-from ) for ; Mon, 03 Oct 2022 16:37:34 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id +LFzMq7zOmOjDAEAG6o9tA (envelope-from ) for ; Mon, 03 Oct 2022 16:37:34 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 9F3229091 for ; Mon, 3 Oct 2022 16:37:33 +0200 (CEST) Received: from localhost ([::1]:38976 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ofMZY-0004O8-Qw for larch@yhetil.org; Mon, 03 Oct 2022 10:37:32 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57788) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ofMId-0006tC-KM for guix-patches@gnu.org; Mon, 03 Oct 2022 10:20:08 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:52409) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ofMId-0007Kt-CF for guix-patches@gnu.org; Mon, 03 Oct 2022 10:20:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ofMId-0007o6-6N for guix-patches@gnu.org; Mon, 03 Oct 2022 10:20:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#58273] [PATCH] installer: checks the availability of the mirror Resent-From: aleksandr barakin Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 03 Oct 2022 14:20:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 58273 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 58273@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.166480676029872 (code B ref -1); Mon, 03 Oct 2022 14:20:03 +0000 Received: (at submit) by debbugs.gnu.org; 3 Oct 2022 14:19:20 +0000 Received: from localhost ([127.0.0.1]:51471 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ofMHu-0007lc-Sc for submit@debbugs.gnu.org; Mon, 03 Oct 2022 10:19:20 -0400 Received: from lists.gnu.org ([209.51.188.17]:53816) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ofLvZ-00075V-Jo for submit@debbugs.gnu.org; Mon, 03 Oct 2022 09:56:13 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48642) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ofLvT-0001Li-JW for guix-patches@gnu.org; Mon, 03 Oct 2022 09:56:11 -0400 Received: from forward105p.mail.yandex.net ([2a02:6b8:0:1472:2741:0:8b7:108]:45228) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ofLvM-0003z1-J4 for guix-patches@gnu.org; Mon, 03 Oct 2022 09:56:05 -0400 Received: from iva7-38cb93e4c9b7.qloud-c.yandex.net (iva7-38cb93e4c9b7.qloud-c.yandex.net [IPv6:2a02:6b8:c0c:2f93:0:640:38cb:93e4]) by forward105p.mail.yandex.net (Yandex) with ESMTP id 63FEF2FD9371 for ; Mon, 3 Oct 2022 16:55:51 +0300 (MSK) Received: by iva7-38cb93e4c9b7.qloud-c.yandex.net (smtp/Yandex) with ESMTPSA id szfGf5mdFU-tohuiVqE; Mon, 03 Oct 2022 16:55:50 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client certificate not present) X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=barak.in; s=mail; t=1664805350; bh=uCrKyMktnG/GLq7OmF6Vz1AmiHZjD6jQ/atdCO5U7Xs=; h=Message-ID:Subject:To:From:Date; b=IGa3ztfYw8tiHdGIhZVNRlPTQeRP703kmuNdQvSJ4SQXvpVeXcxZzSB7P8lRYbrb5 OY5cn9HENHYOLtGPTNHtO/ELRZuh1uEk3FUgZJ6Eg7ZkQ0HwoNTHvpU+osLloVHgAQ Al7yqQ1BTg+bmqJk9e7TrBbKufpswrd1mGqUyo8c= Date: Mon, 3 Oct 2022 16:55:49 +0300 From: aleksandr barakin Message-ID: <20221003135547.z4a6ocs7dijgb3nh@barak.in> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="bwfsnjuplwe3pvr7" Content-Disposition: inline User-Agent: NeoMutt/20170113 (1.7.2) Received-SPF: pass client-ip=2a02:6b8:0:1472:2741:0:8b7:108; envelope-from=alex@barak.in; helo=forward105p.mail.yandex.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Mon, 03 Oct 2022 10:19:11 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Mailman-Approved-At: Mon, 03 Oct 2022 10:34:24 -0400 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1664807854; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:list-id:list-help:list-unsubscribe:list-subscribe: list-post:dkim-signature; bh=uCrKyMktnG/GLq7OmF6Vz1AmiHZjD6jQ/atdCO5U7Xs=; b=VlJzxJKsJC91NRtSpwni8VV9VhiMmXGoiponussW4+T011SdRakPLKcIchSmoBFqbvYSpZ VOL0otSI740XdDTXM/VgXyh1PSJr7YPfC/ixYknLTuwQ16QKpiqBUWyrv1TvzJqguXmJEy 8IUx5xAojcueLDG37jaP32MJbEv/kWU/coE3bycU+ZvRAP4iKG6FsN94GtxqWOMJfo4ZE9 c86PGpdqcobqR4tqRjgPM21NJjMAfz1tvmKIZDAtJhgKVk99LBTUCS17p7SAELLwvJYKEe AxglR3JEB3lxFQKw0+a/p4v1ZFLHwk85rzfUqG8/AgPSDq9eAQNiuTGJfbfFng== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1664807854; a=rsa-sha256; cv=none; b=nz4Z2UC+6rpDmy4+KKJ5+wSSlcec49Agf8pRNGwfl7pZURbzzZ9opMbpcnx+de+Wzb/kAq kO9QR5I6WzPlnvPZ8z+hm3fXUrL3kqiRm8VRvYc8k6k4YximB4vZEJQyjPVzMimhzWg0mO NkDfp0rThI8wfNWBiRhgY0gEjW+rMzHpeICe4WE4PF998M5lEyJvoiA3oRqxmOpl5XgeHb AgUM6OpcJhH9iBAZ+oWYke55ecnDinH7+JxJj+z1RrOkmTUE37YKyT/5tTGtmZ6ayAjZB2 dNhJwc8fyUrwldYI+aQUxXJWfs6b6RwFXSUSBWUG4+e5Yt40rRNq0iPSxwckrg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=barak.in header.s=mail header.b=IGa3ztfY; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -2.65 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=barak.in header.s=mail header.b=IGa3ztfY; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 9F3229091 X-Spam-Score: -2.65 X-Migadu-Scanner: scn0.migadu.com X-TUID: q9fEJh9akAcG --bwfsnjuplwe3pvr7 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable checks the availability of the mirror bordeaux.guix.gnu.org. this allows you to start the installation if the ci.guix.gnu.org is unavailable. --- gnu/installer/newt/network.scm | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/gnu/installer/newt/network.scm b/gnu/installer/newt/network.scm index 0477a489be..b11a55cb1f 100644 --- a/gnu/installer/newt/network.scm +++ b/gnu/installer/newt/network.scm @@ -122,10 +122,15 @@ FULL-VALUE tentatives, spaced by 1 second." (lambda _ #f)) (alarm 3)) (lambda () - (false-if-exception - (=3D (response-code - (http-request "https://ci.guix.gnu.org")) - 200))) + (or + (false-if-exception + (=3D (response-code + (http-request "https://ci.guix.gnu.org")) + 200)) + (false-if-exception + (=3D (response-code + (http-request "https://bordeaux.guix.gnu.org")) + 200)))) (lambda () (alarm 0)))) =20 --=20 2.30.2 --=20 wbr, aleksandr barakin aka sash-kan. --bwfsnjuplwe3pvr7 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQTy+QZ2YvBaypi4qLpb8Ov2Kx8BwAUCYzrp4wAKCRBb8Ov2Kx8B wGTCAJ42Utdm/dYgOhCFOASYC7rzzEq3MQCdFLz+4n2Hk5Q8Vws6eW3e0qXpJFU= =2K2F -----END PGP SIGNATURE----- --bwfsnjuplwe3pvr7--