From 85d3ba4e450f2f621d207e9ddc383ea28a9c8706 Mon Sep 17 00:00:00 2001 From: Mathieu Lirzin Date: Mon, 4 Jul 2016 13:37:06 +0200 Subject: cuirass: process-spec: Use 'when' instead of 'and'. This is done because 'set-load-path!' returns a undefined value. --- bin/cuirass.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/cuirass.in b/bin/cuirass.in index c56f5b5..04d439b 100644 --- a/bin/cuirass.in +++ b/bin/cuirass.in @@ -120,7 +120,8 @@ if required." "Evaluate and build SPEC" (fetch-repository spec) (let ((old-path %load-path)) - (and (job-spec-load-path spec) (set-load-path! spec)) + (when (job-spec-load-path spec) + (set-load-path! spec)) (let ((store ((guix-variable 'store 'open-connection)))) (dynamic-wind (const #t) -- cgit v1.2.3