From ef51ac21eec28de3b0fb693f88be5f3c494d464a Mon Sep 17 00:00:00 2001 From: Ludovic Courtès Date: Wed, 31 May 2017 09:55:56 +0200 Subject: derivations: 'substitution-oracle' returns a . * guix/derivations.scm (substitution-oracle): Use 'substitution-path-info' instead of 'substitution-paths'. Turn SUBST into a vhash from path to . Change the returned procedure to provide a instead of a Boolean. * tests/derivations.scm ("substitution-oracle and #:substitute? #f"): Mock 'substitutable-path-info' instead of 'substitutable-paths'. --- tests/derivations.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/derivations.scm b/tests/derivations.scm index cabbf7b951..d4e1a32bb6 100644 --- a/tests/derivations.scm +++ b/tests/derivations.scm @@ -919,7 +919,7 @@ (define (record-substitutable-path-query store paths) (set! query paths) '()) - (mock ((guix store) substitutable-paths + (mock ((guix store) substitutable-path-info record-substitutable-path-query) (let ((pred (substitution-oracle store (list drv)))) -- cgit v1.2.3