diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2007-11-16 16:15:26 +0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2007-11-16 16:15:26 +0000 |
commit | c370755583d7350f4b96136eb0a6a8a7b08551b1 (patch) | |
tree | 6e42f14440963847a4b71a142b4ace2a2523b279 /src/nix-worker/nix-worker.cc | |
parent | c05783ad67ee95b5dd76d160efedc23b3acb0905 (diff) |
* Flag `--no-build-hook' to disable distributed builds.
* queryDeriver in daemon mode: don't barf if the other side returns an
empty string (which means there is no deriver).
Diffstat (limited to 'src/nix-worker/nix-worker.cc')
-rw-r--r-- | src/nix-worker/nix-worker.cc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/nix-worker/nix-worker.cc b/src/nix-worker/nix-worker.cc index 9f387a4ec..5e261aa16 100644 --- a/src/nix-worker/nix-worker.cc +++ b/src/nix-worker/nix-worker.cc @@ -223,7 +223,8 @@ struct TunnelSource : Source }; -static void performOp(Source & from, Sink & to, unsigned int op) +static void performOp(unsigned int clientVersion, + Source & from, Sink & to, unsigned int op) { switch (op) { @@ -422,6 +423,8 @@ static void performOp(Source & from, Sink & to, unsigned int op) verbosity = (Verbosity) readInt(from); maxBuildJobs = readInt(from); maxSilentTime = readInt(from); + if (GET_PROTOCOL_MINOR(clientVersion) >= 2) + useBuildHook = readInt(from) != 0; startWork(); stopWork(); break; @@ -492,7 +495,7 @@ static void processConnection() opCount++; try { - performOp(from, to, op); + performOp(clientVersion, from, to, op); } catch (Error & e) { stopWork(false, e.msg()); } |