aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorMathieu Lirzin <mthl@gnu.org>2016-07-04 13:37:06 +0200
committerMathieu Lirzin <mthl@gnu.org>2016-07-04 13:51:03 +0200
commit85d3ba4e450f2f621d207e9ddc383ea28a9c8706 (patch)
tree1596df2da7c0e310386a92f761945e79f42b1f51 /bin
parentfe30eb7e82e1cb3c2e3e4071df1f33ef459d9ae2 (diff)
downloadcuirass-85d3ba4e450f2f621d207e9ddc383ea28a9c8706.tar
cuirass-85d3ba4e450f2f621d207e9ddc383ea28a9c8706.tar.gz
cuirass: process-spec: Use 'when' instead of 'and'.
This is done because 'set-load-path!' returns a undefined value.
Diffstat (limited to 'bin')
-rw-r--r--bin/cuirass.in3
1 files changed, 2 insertions, 1 deletions
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)