GNU bug report logs - #58273
[PATCH] installer: checks the availability of the mirror

Previous Next

Package: guix-patches;

Reported by: aleksandr barakin <alex <at> barak.in>

Date: Mon, 3 Oct 2022 14:20:03 UTC

Severity: normal

Tags: patch

Done: Andrew Tropin <andrew <at> trop.in>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Mathieu Othacehe <othacehe <at> gnu.org>
To: Andrew Tropin <andrew <at> trop.in>
Cc: 58273 <at> debbugs.gnu.org, aleksandr barakin <alex <at> barak.in>
Subject: [bug#58273] [PATCH] installer: checks the availability of the mirror
Date: Mon, 17 Oct 2022 09:39:34 +0200
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




This bug report was last modified 2 years and 296 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.