From 2c049216340cf25660b39b3f358ad112cbd1a798 Mon Sep 17 00:00:00 2001 From: Mark H Weaver Date: Wed, 17 Jun 2015 13:55:21 -0400 Subject: [PATCH] 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. --- guix/scripts/offload.scm | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/guix/scripts/offload.scm b/guix/scripts/offload.scm index e65125741f..e6be8b4465 100644 --- a/guix/scripts/offload.scm +++ b/guix/scripts/offload.scm @@ -606,9 +606,7 @@ (define (undecorate pred) ((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