cuirass: process-spec: Use 'when' instead of 'and'.

This is done because 'set-load-path!' returns a undefined value.
pull/3/head
Mathieu Lirzin 2016-07-04 13:37:06 +02:00
parent fe30eb7e82
commit 85d3ba4e45
1 changed files with 2 additions and 1 deletions

View File

@ -120,7 +120,8 @@ if required."
"Evaluate and build SPEC" "Evaluate and build SPEC"
(fetch-repository spec) (fetch-repository spec)
(let ((old-path %load-path)) (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)))) (let ((store ((guix-variable 'store 'open-connection))))
(dynamic-wind (dynamic-wind
(const #t) (const #t)