diff options
author | Ludovic Courtès <ludo@gnu.org> | 2019-11-26 12:30:45 +0100 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2019-11-27 00:03:03 +0100 |
commit | 434138e2f26b28bb5cc83e62327aae8ed0902475 (patch) | |
tree | 172c6e034fb8cb633b39223ea9e20149a2a4d97c /tests | |
parent | 7f3bbfaf8ec3b96e02e0cf74e7515ac33c002107 (diff) | |
download | patches-434138e2f26b28bb5cc83e62327aae8ed0902475.tar patches-434138e2f26b28bb5cc83e62327aae8ed0902475.tar.gz |
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.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/substitute.scm | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/substitute.scm b/tests/substitute.scm index ff2be662be..a4246aff82 100644 --- a/tests/substitute.scm +++ b/tests/substitute.scm @@ -1,6 +1,6 @@ ;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2014 Nikita Karetnikov <nikita@karetnikov.org> -;;; Copyright © 2014, 2015, 2017, 2018 Ludovic Courtès <ludo@gnu.org> +;;; Copyright © 2014, 2015, 2017, 2018, 2019 Ludovic Courtès <ludo@gnu.org> ;;; ;;; This file is part of GNU Guix. ;;; @@ -169,9 +169,7 @@ a file for NARINFO." (cute write-file (string-append narinfo-directory "/example.out") <>)) - (set! (@@ (guix scripts substitute) - %allow-unauthenticated-substitutes?) - #f)) + (%allow-unauthenticated-substitutes? #f)) thunk (lambda () (when (file-exists? cache-directory) |