Fix substitutes server discovery.

This is a follow-up of bc3896db25c788c181c7bcd65754e7cd378e9d9f.

* guix/scripts/substitute.scm (%local-substitute-urls): Test for "true"
instead of "yes".
This commit is contained in:
Mathieu Othacehe 2021-03-29 16:55:58 +02:00
parent 19c6ea9ca4
commit e733f66b5b
No known key found for this signature in database
GPG Key ID: 8354763531769CA6

@ -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))
'())))