guix/gnu
Rutherther 84a018b356
installer: network: Check response code to assess substitute availability.
This is to accomodate following situation:
- The proxy is up
- The substitute server is down

When that happens, 5xx is returned from the proxy, typically either Bad
Gateway or Gateway Timeout. This implies the substitute server is down.

Still, for checking if the user is online, we do not check the response code.
If there is a response, even 4xx, 5xx, it still means the user is online.

* gnu/installer/newt/network.scm
(url-alive?): Add optional argument to to check the response code.
(common-urls-alive?): Add the same argument, passing it to url-alive?
(check-substitute-availability): Assume offline when non-successful http code
returned.

Follow up of 9ea2174ba8.
Change-Id: I52ae8a49407009dd76ad5da3925355770bc25d0c

Change-Id: I99a77cb7332198bae84f28a00a6cc0409d5bf3b9
Signed-off-by: Rutherther <rutherther@ditigal.xyz>
Merges: #5217
2026-01-14 09:16:50 +01:00
..
bootloader
build gnu: make-iso9660-image: Do not compress any kernel, compress man pages. 2025-12-22 23:00:40 +01:00
home
installer installer: network: Check response code to assess substitute availability. 2026-01-14 09:16:50 +01:00
machine
packages gnu: sudo: Add libxcrypt dependency on the Hurd. 2026-01-14 09:16:48 +01:00
services services: xorg: Return only supported packages in %default-xorg-modules. 2025-12-22 23:00:41 +01:00
system image: operating-system-for-image: Bring back root-fs placeholder. 2026-01-04 12:46:55 +01:00
tests services: nscd: Cause PID 1 to drop nscd database mappings on shutdown. 2025-12-19 00:05:43 +01:00
artwork.scm
bootloader.scm
ci.scm
compression.scm
home.scm
image.scm
installer.scm installer: Drop uri from provenance log. 2025-12-22 23:00:46 +01:00
local.mk gnu: freerdp: Update to 3.20.0. 2026-01-14 09:16:44 +01:00
machine.scm
packages.scm
services.scm
system.scm system: operating-system-etc-service: Unset GUIX_PROFILE. 2026-01-04 12:46:57 +01:00
tests.scm