Fix substitutes server discovery.
authorMathieu Othacehe <othacehe@gnu.org>
Mon, 29 Mar 2021 14:55:58 +0000 (16:55 +0200)
committerMathieu Othacehe <othacehe@gnu.org>
Mon, 29 Mar 2021 14:57:10 +0000 (16:57 +0200)
This is a follow-up of bc3896db25c788c181c7bcd65754e7cd378e9d9f.

* guix/scripts/substitute.scm (%local-substitute-urls): Test for "true"
instead of "yes".

guix/scripts/substitute.scm

index 46323c7..ccdc413 100755 (executable)
@@ -655,7 +655,7 @@ is shorter than MAX elements, then it is directly returned."
   ;; If the following option is passed to the daemon, use the substitutes list
   ;; provided by "guix discover" process.
   (let* ((option (find-daemon-option "discover"))
-         (discover? (and option (string=? option "yes"))))
+         (discover? (and option (string=? option "true"))))
     (if discover?
      (randomize-substitute-urls (read-substitute-urls))
      '())))