From 8a120006f0ba50b56b1a17efad18283b797d39fa Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 8 Dec 2016 16:03:02 +0100 Subject: [PATCH] Fix version test --- src/hydra-queue-runner/build-remote.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hydra-queue-runner/build-remote.cc b/src/hydra-queue-runner/build-remote.cc index 18e6e825..05a4bab0 100644 --- a/src/hydra-queue-runner/build-remote.cc +++ b/src/hydra-queue-runner/build-remote.cc @@ -180,8 +180,8 @@ void State::buildRemote(ref destStore, throw Error(format("unsupported ‘nix-store --serve’ protocol version on ‘%1%’") % machine->sshName); if (GET_PROTOCOL_MINOR(remoteVersion) >= 1) sendDerivation = false; - if (GET_PROTOCOL_MINOR(remoteVersion) < 3 && step->isDeterministic) - throw Error("machine ‘%1%’ does not support deterministic builds; please upgrade it to Nix 1.12", machine->sshName); + if (GET_PROTOCOL_MINOR(remoteVersion) < 3 && repeats > 0) + throw Error("machine ‘%1%’ does not support repeating a build; please upgrade it to Nix 1.12", machine->sshName); } catch (EndOfFile & e) { child.pid.wait(true);