~ruther/guix-local

7df3ade11286e52829c855b76fc395a4c3831ced — Ludovic Courtès 12 years ago d652b85
offload: Fix thinko.

* guix/scripts/offload.scm (choose-build-machine)[machine+slots]: Use
  'filter-map', not 'filter'.
1 files changed, 4 insertions(+), 4 deletions(-)

M guix/scripts/offload.scm
M guix/scripts/offload.scm => guix/scripts/offload.scm +4 -4
@@ 396,10 396,10 @@ connections allowed to MACHINE."

  (with-file-lock (machine-choice-lock-file)
    (define machines+slots
      (map (lambda (machine)
             (let ((slot (acquire-build-slot machine)))
               (and slot (list machine slot))))
           machines))
      (filter-map (lambda (machine)
                    (let ((slot (acquire-build-slot machine)))
                      (and slot (list machine slot))))
                  machines))

    (define (undecorate pred)
      (match-lambda