diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2016-12-06T16·19+0100 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2016-12-06T16·19+0100 |
commit | 6069b946ad3db5aa613f2691617fea8bd779c3ce (patch) | |
tree | 56f3983d6cd3cf676b009a98a1297ca21dc37cd5 /src/nix-store/nix-store.cc | |
parent | 603f08506eb4bda7138ae102fd09498fc1f9b632 (diff) |
nix-store --serve: Support setting build-repeat
This allows Hydra to test whether builds are reproducible.
Diffstat (limited to 'src/nix-store/nix-store.cc')
-rw-r--r-- | src/nix-store/nix-store.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nix-store/nix-store.cc b/src/nix-store/nix-store.cc index 63e20a8c77a7..2e530ae52a3a 100644 --- a/src/nix-store/nix-store.cc +++ b/src/nix-store/nix-store.cc @@ -840,6 +840,8 @@ static void opServe(Strings opFlags, Strings opArgs) settings.buildTimeout = readInt(in); if (GET_PROTOCOL_MINOR(clientVersion) >= 2) settings.maxLogSize = readInt(in); + if (GET_PROTOCOL_MINOR(clientVersion) >= 3) + settings.set("build-repeat", std::to_string(readInt(in))); }; while (true) { |