offload: Fix sorting bug in 'choose-build-machine'.

* guix/scripts/offload.scm (choose-build-machine)[undecorate]: Return the
  boolean result of pred instead of the best machine+slot.
master
Mark H Weaver 2015-06-17 13:55:21 -04:00
parent 86517de69c
commit 2c04921634
1 changed files with 1 additions and 3 deletions

View File

@ -606,9 +606,7 @@ defines a total order on machines.)"
((machine1 slot1)
(match b
((machine2 slot2)
(if (pred machine1 machine2)
(list machine1 slot1)
(list machine2 slot2))))))))
(pred machine1 machine2)))))))
(let loop ((machines+slots
(sort machines+slots