substitute: Make '%allow-unauthenticated-substitutes?' public.
authorLudovic Courtès <ludo@gnu.org>
Tue, 26 Nov 2019 11:30:45 +0000 (12:30 +0100)
committerLudovic Courtès <ludo@gnu.org>
Tue, 26 Nov 2019 23:03:03 +0000 (00:03 +0100)
commit434138e2f26b28bb5cc83e62327aae8ed0902475
tree172c6e034fb8cb633b39223ea9e20149a2a4d97c
parent7f3bbfaf8ec3b96e02e0cf74e7515ac33c002107
substitute: Make '%allow-unauthenticated-substitutes?' public.

* guix/scripts/substitute.scm (warn-about-missing-authentication): New
procedure.
(%allow-unauthenticated-substitutes?): Turn into a public parameter and
use 'warn-about-missing-authentication'.
(valid-narinfo?): Adjust accordingly.
* tests/substitute.scm (call-with-narinfo): Likewise.
guix/scripts/substitute.scm
tests/substitute.scm