From unknown Sat Sep 06 13:38:06 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#58273 <58273@debbugs.gnu.org> To: bug#58273 <58273@debbugs.gnu.org> Subject: Status: [PATCH] installer: checks the availability of the mirror Reply-To: bug#58273 <58273@debbugs.gnu.org> Date: Sat, 06 Sep 2025 20:38:06 +0000 retitle 58273 [PATCH] installer: checks the availability of the mirror reassign 58273 guix-patches submitter 58273 aleksandr barakin severity 58273 normal tag 58273 patch thanks From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 03 10:19:20 2022 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= Authentication-Results: iva7-38cb93e4c9b7.qloud-c.yandex.net; dkim=pass header.i=@barak.in Date: Mon, 3 Oct 2022 16:55:49 +0300 From: aleksandr barakin To: guix-patches@gnu.org Subject: [PATCH] installer: checks the availability of the mirror 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-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit 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 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) --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-- From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 05 07:23:28 2022 Received: (at 58273) by debbugs.gnu.org; 5 Oct 2022 11:23:29 +0000 Received: from localhost ([127.0.0.1]:56092 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1og2Uq-00075n-B9 for submit@debbugs.gnu.org; Wed, 05 Oct 2022 07:23:28 -0400 Received: from out1.migadu.com ([91.121.223.63]:30511) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1og1kP-0005aP-Lj for 58273@debbugs.gnu.org; Wed, 05 Oct 2022 06:35:32 -0400 MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=unwox.com; s=key1; t=1664966126; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=IVnOlr6tcgeWKGgm2FhOpRNg5wrn0QLa0GngkhI4+LM=; b=IPC3TBJRj3soXWK5glqfWZVrtNNw2vkRUEkmCD13ys5p12c6FcZPpplWoDazI8ZgcMGJ++ 64SLlafZOYkNIcTZBAWcOJfBa++BMGkR6YM0nq0cIzDViPrbpXPcKNyx9t+gpF3RAGmJAC Z9R+/XdbEt2Io8gaN08iUCV3ynrqk6Y= Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Wed, 05 Oct 2022 16:39:23 +0600 Message-Id: Subject: X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: "unwox" To: <58273@debbugs.gnu.org> X-Migadu-Flow: FLOW_OUT X-Spam-Score: 1.3 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: +1 for this. It would make guix installation via graphical installer possible in Russia since ci.guix.gnu.org is not accessible from there without using proxy. Content analysis details: (1.3 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [91.121.223.63 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 2.0 BLANK_SUBJECT Subject is present but empty X-Debbugs-Envelope-To: 58273 X-Mailman-Approved-At: Wed, 05 Oct 2022 07:23:27 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.3 (/) +1 for this. It would make guix installation via graphical installer possible in Russia since ci.guix.gnu.org is not accessible from there without using proxy. From debbugs-submit-bounces@debbugs.gnu.org Fri Oct 14 01:55:41 2022 Received: (at 58273) by debbugs.gnu.org; 14 Oct 2022 05:55:41 +0000 Received: from localhost ([127.0.0.1]:35541 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ojDfY-0004Tm-V9 for submit@debbugs.gnu.org; Fri, 14 Oct 2022 01:55:41 -0400 Received: from lepiller.eu ([89.234.186.109]:56816) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ojDfT-0004TU-3J for 58273@debbugs.gnu.org; Fri, 14 Oct 2022 01:55:39 -0400 Received: from lepiller.eu (localhost [127.0.0.1]) by lepiller.eu (OpenSMTPD) with ESMTP id 947a6881; Fri, 14 Oct 2022 05:55:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=lepiller.eu; h=date:from :to:cc:subject:message-id:in-reply-to:references:mime-version :content-type:content-transfer-encoding; s=dkim; bh=kQu/HZTZoPWr 7pDOydjhSswBdt0Q66rcwPTnsWeHBjE=; b=hlkqaRdt5zuUXDSM1jR705llKv9r vZQTUKEukEteOlHkJIpntPI7xewJTFuGgWqObdsY8r+4xfSybvZQFOyHSdtqmiqw k0hPJgTd4QrEuYnO/pQ7ziVvUHA7nbX0XNArduxTAmL6gUPiqi8gBIbiMpGFfby6 OcKOtZRvoZySw7tUsM0BtW98ixRd6EhKURpZ6w/6QqVycJtnFhV+BAAOoVMHHUu1 dhrJ5X2EqHXP4fgPZ1jvaNeJp9KhD8/U/OfLHY0bwTNHUhhtKq+TPd62ZRoDE34l t+w/BAX8ObMzjh2a2W5UaZ/+yQkpCNLvvwsvTm0QCGolSJPnKUH4NICUXw== Received: by lepiller.eu (OpenSMTPD) with ESMTPSA id 5a58e670 (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO); Fri, 14 Oct 2022 05:55:32 +0000 (UTC) Date: Fri, 14 Oct 2022 07:55:31 +0200 From: Julien Lepiller To: aleksandr barakin Subject: Re: [bug#58273] [PATCH] installer: checks the availability of the mirror Message-ID: <20221014075525.5e68aae6@sybil.lepiller.eu> In-Reply-To: <20221003135547.z4a6ocs7dijgb3nh@barak.in> References: <20221003135547.z4a6ocs7dijgb3nh@barak.in> X-Mailer: Claws Mail 4.1.0 (GTK 3.24.30; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 58273 Cc: 58273@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Le Mon, 3 Oct 2022 16:55:49 +0300, aleksandr barakin a =C3=A9crit : > checks the availability of the mirror bordeaux.guix.gnu.org. >=20 > this allows you to start the installation if the ci.guix.gnu.org > is unavailable. This sounds useful, but I don't know how to test. The patch looks good and fairly simple to me :) From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 17 01:33:35 2022 Received: (at 58273) by debbugs.gnu.org; 17 Oct 2022 05:33:35 +0000 Received: from localhost ([127.0.0.1]:46871 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1okIkp-0003Ij-An for submit@debbugs.gnu.org; Mon, 17 Oct 2022 01:33:35 -0400 Received: from relay1-d.mail.gandi.net ([217.70.183.193]:37669) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1okIkm-0003IR-UR for 58273@debbugs.gnu.org; Mon, 17 Oct 2022 01:33:34 -0400 Received: (Authenticated sender: andrew@trop.in) by mail.gandi.net (Postfix) with ESMTPSA id 76D56240005; Mon, 17 Oct 2022 05:33:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=trop.in; s=gm1; t=1665984806; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=eedAJd5qfxO5NCYUIKPSb8LQoLK7sUv2hItAGM02iZQ=; b=JfB0pi5S9mal0GxSd4NT+l45qE/atjIkDrd4NbCfjj83200t9rEuovbjLu8vPQwaHG1i9Q p8GleadigFLlin+ED33bebDHiGP5UAgOMFqp4tZtn59mhKvXjI91t5CyPdakRCj1aD2M1b fJj8N2S1S8/1NS9EaPS0Rbs038mJoDoSYoPaM6pm1es+EBAZAJ/fBFoZDcCTbrqb+VZvWe Kt07uFfx7ey9VzNeeUPTe/kYlhRyKD7bM3d9D0UkdRJrYeof5f2k4ocHkMgOiyrkxtAX/E 8yZFN8jlpNs/pdPZfdqMiYb6PrRy0H+pzH5iYlzmv7Vp1uceeJkMSMjlUwJWIw== From: Andrew Tropin To: aleksandr barakin , 58273@debbugs.gnu.org Subject: Re: [bug#58273] [PATCH] installer: checks the availability of the mirror In-Reply-To: <20221003135547.z4a6ocs7dijgb3nh@barak.in> References: <20221003135547.z4a6ocs7dijgb3nh@barak.in> Date: Mon, 17 Oct 2022 09:33:17 +0400 Message-ID: <87o7ub815u.fsf@trop.in> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 58273 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On 2022-10-03 16:55, aleksandr barakin wrote: > 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 > --=20 > 2.30.2 Ideally we should not hardcode exact mirror urls, because the image can be built with different substitute urls. Another possible soultion is to add an ability to skip the check via TUI, as /tmp/installer-assume-online probably not well-known and this step can stop people without access to ci.guix.gnu.org from using Guix System, seems especially true for newcommers. Anyway, I find this patch useful and good enough to solve the problem at least for some people (who don't have access to ci, but have it to bordeaux), adjusted the wording and commit message, applied. =2D-=20 Best regards, Andrew Tropin --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEKEGaxlA4dEDH6S/6IgjSCVjB3rAFAmNM6R0ACgkQIgjSCVjB 3rDxdhAAjhXk94Uz+l1TC3tKqkf60e7eiPQwzRuwJ/fDVfgvRodXHQUqvKSEPyyx Hm/+LUrVmYVf6ERJUURqm7sqRvmYFryLQIcWqARuzeN0z5EeLkBG2nxrAkWz8v7g aQ7rcLLQTIRE4eOwHI4L1ifxsiGKbuCNB/tLy7DDJD4YbQ3/JLYv2h+S0yc2QeD8 3oAz3TrGnI3kwiiDBEC2QpAkDCw74DDQrXzwj60HgE36XpLBzSsNuYA8gH9Y45vH XR7XhFEAGAPmfAXMnLkHItzHbeXeaX8CNoCyFOE95eohCv+68/7my0vyVlDxO8LP v9gMCaAF5hJbTtqqPelEnG8ZLJLSG1YVc4eF6gkiEH5ee8N+roZndyef4MJIzZR9 QB6B+UQ6lvfmSQ5vHrvlKPyqOHvldctmqT4Kz56gB26w68uVPSlNofPON203NGim spY06S6kr+fx1DkTsjMwgzfTdbjaSL29LC+L5upKVFg0RKh2saUcsoxlXbo/aINM V2sYer4hVpOEpSae89b9DKsKTBCUXqp9n89L7i6h8oXBPPM79DId6/DwMVk9q7mU U+gx8ZwsiJqJs+D8aZzhIUOxFJWp1vvhFrZ8vV1TcysTCRz0gSOPCh9oC+2S3BOr oBLHi5eXn7Xfw8U3hs9m/+LgOasfg5uazOyJpBx4VcyYZtdUXvM= =Od9Q -----END PGP SIGNATURE----- --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 17 01:34:24 2022 Received: (at control) by debbugs.gnu.org; 17 Oct 2022 05:34:24 +0000 Received: from localhost ([127.0.0.1]:46886 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1okIlc-0003LC-Ak for submit@debbugs.gnu.org; Mon, 17 Oct 2022 01:34:24 -0400 Received: from relay11.mail.gandi.net ([217.70.178.231]:49329) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1okIlX-0003Kr-0N for control@debbugs.gnu.org; Mon, 17 Oct 2022 01:34:22 -0400 Received: (Authenticated sender: andrew@trop.in) by mail.gandi.net (Postfix) with ESMTPSA id 70959100005 for ; Mon, 17 Oct 2022 05:34:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=trop.in; s=gm1; t=1665984852; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=rzGj1QDnhHPbSLHhyZKMO3372JZR54JO/ioJXOdIn7k=; b=SzUDrYrWgIrRnKHLQd6bb3nC/vnr4F8UyI9Y+/MwKSIs6xxz4J+bNsICtzmgjBijiE1fGH uleA7xTG9GiizVgOjwXPnkIWJ2OLgiNZWJEjpYs1v3yHRPd4NyWU3SY+hyVwAg1lclCPKq vKGBQH3LW5nKoKzQ5WbCquS9SmO55esA89oeFcSPKuAbMYqRB8Xt/1n8wQ5v2K/P+zYHJu uNVczsapZSUoey4Ii9zYr1D2tb/K7lNgVqAvSSF/i9I0fEow5n9ZZY3EOtvVDnIi7Ch11V qjh8OZa2JIO/ACvY+itsDGgRPUnTzc2Dc/+URA5Dygy0oJw1q94pSBVcwFZvIw== From: Andrew Tropin To: control@debbugs.gnu.org Subject: Applied Date: Mon, 17 Oct 2022 09:34:09 +0400 Message-ID: <87k04z814e.fsf@trop.in> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) --=-=-= Content-Type: text/plain close 58273 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEKEGaxlA4dEDH6S/6IgjSCVjB3rAFAmNM6VEACgkQIgjSCVjB 3rD6PA/+L1UKWrY/gZEJp84d3WX43CaR5eXZux5oeVf/2sZyv94aqYw2piTxMdad 0g+JYyw1gUYzISNLz0mL3U3pFetq8LK42TtWLSlJOhLzi+3m+SvVip66yND0VCNJ 7Pj/EXpBuy9B8fAYGas/KhcgkFGGISUj2tqZRinHIy9MlzPwQT/OQJ330JKcl6DG Oz8NCiofX968fU2DKfAfaEXnWq5ijgcpJpAZdcU4boaiFLHNWWhAX7ijg034LVXL qiAjAE+H21saCBgpjy5lmsmnMPSxtkRGJ6rvAsEupReyeJ8N9WTtAtbtFCqXfaW6 +hnOVRMXX0JDyuXWF6fFC6OQze8xpYsY3OeFIY3gO7QjcXhjoVnnYtfwJtRDNnFY EWpVaO0eJppG9QcJVFlnT0pW4tSjuhJ6u9MQBF8tpTISCYhj50iTDHPNU8YUvwHi UZaO3h0Hxo4qzXywMROZ8WA3KOzFH9I9nVs8oDDC4926nyfqL1WAmzVbX5RDYv2u K3jKvJBN0yJQCQzMhFIWhTXWF4vMeZxKYe+UROtpR7GyilDDfLAt01v64MU4YLvP v0iV8xlKu8j1YOg09mxCYKkZmlnmEb61ld13iXBQ1kub1VKg9v1p9niHkOA/GW23 OduC5g3R2zrgeW10biYmkbNdn1kuCg0pdgXynV9uDSn+0gODRkY= =rwSm -----END PGP SIGNATURE----- --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 17 03:39:47 2022 Received: (at 58273) by debbugs.gnu.org; 17 Oct 2022 07:39:47 +0000 Received: from localhost ([127.0.0.1]:47089 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1okKix-0000W7-FU for submit@debbugs.gnu.org; Mon, 17 Oct 2022 03:39:47 -0400 Received: from eggs.gnu.org ([209.51.188.92]:38744) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1okKiv-0000Vr-0D for 58273@debbugs.gnu.org; Mon, 17 Oct 2022 03:39:45 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:33994) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1okKio-00032V-Lm; Mon, 17 Oct 2022 03:39:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=IQvgcwE6zSvONig9IU+D2q39bj3/eIKXk738eiS+IEw=; b=YdHm+Tfu2pN4Il+P0Wzo QZA23fVcxAbP6Z22PJG3Bqz+kORDrtvrwYWJFSmeaDHLpcPK50YPPGfJLjBggSTBfRMB92/SeMsJw YXfK+wZ5s8eZmTdnj2IUgMTRj9B+jK+6U5aIi3mV1P3dgshkS1e/+2s9gLaPMVOJ9cgS187h6Gj3R 5qR6lv4BiK7hFpnbxdSRd2iwZXzOTnKyDGFlS4VhNXnmx5rmtpdn5feKFjmBuIIZ0wZQiPjMihlpm T/YhHQtxE0YXu/uM6WEejaHjsXek5ChxRSgufKSs/h5w6mC+yYExV0bC0WcFFjUN5oAt2OhXZk8/C xhswQ7cGLoUJSQ==; Received: from 2a02-8429-81d2-3d01-94c9-8097-ea5c-2775.rev.sfr.net ([2a02:8429:81d2:3d01:94c9:8097:ea5c:2775]:53808 helo=meije) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1okKin-0006qy-Pz; Mon, 17 Oct 2022 03:39:38 -0400 From: Mathieu Othacehe To: Andrew Tropin Subject: Re: bug#58273: [PATCH] installer: checks the availability of the mirror References: <20221003135547.z4a6ocs7dijgb3nh@barak.in> <87o7ub815u.fsf@trop.in> Date: Mon, 17 Oct 2022 09:39:34 +0200 In-Reply-To: <87o7ub815u.fsf@trop.in> (Andrew Tropin's message of "Mon, 17 Oct 2022 09:33:17 +0400") Message-ID: <87tu42nbk9.fsf_-_@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 58273 Cc: 58273@debbugs.gnu.org, aleksandr barakin X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hello Andrew, >> + (false-if-exception >> + (= (response-code >> + (http-request "https://ci.guix.gnu.org")) >> + 200)) >> + (false-if-exception >> + (= (response-code >> + (http-request "https://bordeaux.guix.gnu.org")) >> + 200)))) Thanks for taking care of this patch. I think the following part could be factorized: (define (url-alive? url) (false-if-exception (= (response-code (http-request url)) 200))) also, the indentation is wrong. Could you please fix it? Thanks, Mathieu From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 17 08:51:33 2022 Received: (at 58273) by debbugs.gnu.org; 17 Oct 2022 12:51:33 +0000 Received: from localhost ([127.0.0.1]:47745 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1okPaf-0007e8-5X for submit@debbugs.gnu.org; Mon, 17 Oct 2022 08:51:33 -0400 Received: from relay3-d.mail.gandi.net ([217.70.183.195]:41981) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1okPaa-0007dg-Id for 58273@debbugs.gnu.org; Mon, 17 Oct 2022 08:51:29 -0400 Received: (Authenticated sender: andrew@trop.in) by mail.gandi.net (Postfix) with ESMTPSA id 513BF6000C; Mon, 17 Oct 2022 12:51:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=trop.in; s=gm1; t=1666011082; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=44R9BYusdi18Dy/ZuTF9A9f4W3H5s73GNSQoOGvisCg=; b=anQlvA4C/FuFS/tMXPZHab6gvxWjBB3GwtIaGF3kHIs2YX7mTnM56M4Fe2SWb2Xyx2StMP q+f0y8UA2poJKlsOZ/MouEB4sXH2Q2UbsmUaSjr7wh6HvkNHgfBOH0Te41Y1OU1rgcRVNe Efxw6HkMIBuVqUPzMjUMsIh9bW6H5uo6jm3d1DWaYjF9eN3ShD86mB6djtMV5NASI7Gks2 fsD0/jnFsC1ok+3ebn31ARpRfksvvXmluxbiikgapui2y65fSqq8QlhkTH71jqT1ixsdmb 5VsdstgBS8VrC0zpH3MUmJe1x04/tinP7omKXGVEAGHXrvZNqKgsUIrRXm19xQ== From: Andrew Tropin To: Mathieu Othacehe Subject: Re: bug#58273: [PATCH] installer: checks the availability of the mirror In-Reply-To: <87tu42nbk9.fsf_-_@gnu.org> References: <20221003135547.z4a6ocs7dijgb3nh@barak.in> <87o7ub815u.fsf@trop.in> <87tu42nbk9.fsf_-_@gnu.org> Date: Mon, 17 Oct 2022 16:51:11 +0400 Message-ID: <8735bmpq9s.fsf@trop.in> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 58273 Cc: 58273@debbugs.gnu.org, aleksandr barakin X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On 2022-10-17 09:39, Mathieu Othacehe wrote: > Hello Andrew, > >>> + (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)))) > > Thanks for taking care of this patch. I think the following part could > be factorized: > > (define (url-alive? url) > (false-if-exception > (=3D (response-code > (http-request url)) > 200))) > > also, the indentation is wrong. Could you please fix it? Thank you for the idea, pushed the change. =2D-=20 Best regards, Andrew Tropin --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEKEGaxlA4dEDH6S/6IgjSCVjB3rAFAmNNT78ACgkQIgjSCVjB 3rDVlxAAhNTbG/0aIiF8pTvT5ZoJzuNcFEg8x1ubh7mC81AWwFIkza25qNRmmnl4 sMQMxdY18By2cXfZdmIE4wjTjAvkx3Sav/bfVsOaajb7kJE3WrCjtyOHUCPMJ0R1 QAVfA1oFfEGPTDjstyKtjvIL4EE5wyS2qI0g5vlbo+j4mQkjJOcunji1Bz44uwDN LYx8WSc9RNmIw2J5FDKrJDDN/OBCeV3+2zsvg1CZoqK0HPoU3TsUP4rBTYMdsAVZ NERDx9s9nPyrYmy0iUv7CCJZL7EtazDOpKqyIuiqehW0aRPn1p2huXdwwcmjyoL1 KBpSH4I0oFDaqL1osyOSVUo2nhQEq/5uSLXm2ELM30pKSi66Rozyg/IORnO1Vzw0 j4/ovaGr+YL5K926SoPGjL707ThRIh9RXfhnmRW22DrkkZ6pmkFKQBdEY2RoOX2r YYek3N/bkmEzobG9dMvnpMludMl8FSoakkrsU+SmnGdQtK9xhAYsVL/omWqQZPHp QHA0VHSRX05CjjXP1K8/sGcoQCuA+1TAucVFfv55L+9EOqvj3RZTBBX9vMZwCFLJ ZaltEF2cDXNDqPdP6Eql0IL7j7IDdymw9IO+EWMyU1kDC884bz57uCuc+O1PiN4m I1FFg03qO0jbAc5sg+mucDMUz02g5/rYH5JBn3UvRHJWqw7rwXI= =QQcb -----END PGP SIGNATURE----- --=-=-=-- From unknown Sat Sep 06 13:38:06 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 15 Nov 2022 12:24:09 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator