From d544f3e6baa42ec890baec268f207902c5cc0faf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Tue, 23 Jan 2018 23:45:24 +0100 Subject: cuirass: Fix scope mismatch. Previously STORE would be closed on the first context switch, before 'restart-builds' has completed, leading to an error (writing to a closed port). * src/cuirass/base.scm (restart-builds): Remove 'store' parameter. Wrap body in 'with-store'. * bin/cuirass.in (main): Adjust accordingly. --- bin/cuirass.in | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'bin') diff --git a/bin/cuirass.in b/bin/cuirass.in index d2cb897..9ece178 100644 --- a/bin/cuirass.in +++ b/bin/cuirass.in @@ -28,7 +28,6 @@ exec ${GUILE:-@GUILE@} --no-auto-compile -e main -s "$0" "$@" (cuirass ui) (cuirass logging) (guix ui) - (guix store) (fibers) (ice-9 getopt-long)) @@ -113,9 +112,8 @@ exec ${GUILE:-@GUILE@} --no-auto-compile -e main -s "$0" "$@" ;; were not even started on a previous run. (spawn-fiber (lambda () - (with-store store - (with-database db - (restart-builds store db pending))))) + (with-database db + (restart-builds db pending)))) (spawn-fiber (lambda () -- cgit v1.2.3