offload: Fix thinko.

* guix/scripts/offload.scm (choose-build-machine)[machine+slots]: Use
  'filter-map', not 'filter'.
This commit is contained in:
Ludovic Courtès 2014-03-08 12:22:49 +01:00
parent d652b85137
commit 7df3ade112

View file

@ -396,7 +396,7 @@ (define (choose-build-machine requirements machines)
(with-file-lock (machine-choice-lock-file)
(define machines+slots
(map (lambda (machine)
(filter-map (lambda (machine)
(let ((slot (acquire-build-slot machine)))
(and slot (list machine slot))))
machines))