diff options
author | John Ericson <John.Ericson@Obsidian.Systems> | 2021-04-05 19:06:43 -0400 |
---|---|---|
committer | John Ericson <John.Ericson@Obsidian.Systems> | 2021-04-05 19:06:43 -0400 |
commit | d0ed11ca729344fd00251d0bc31f0c2f32d2c6a7 (patch) | |
tree | 4f1f16db781f31d4e705e87c70ed485dac3260bb /src/libstore/daemon.cc | |
parent | 386765e3ffc3b3c5721f63696e41a1cf90c1e6ae (diff) | |
parent | 1b6cf0d5f56e166a1cbbf38142375b7a92fc88f2 (diff) |
Merge commit '1b6cf0d5f56e166a1cbbf38142375b7a92fc88f2' into ca-drv-exotic
Diffstat (limited to 'src/libstore/daemon.cc')
-rw-r--r-- | src/libstore/daemon.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/libstore/daemon.cc b/src/libstore/daemon.cc index b2a04d28a..bed7a416b 100644 --- a/src/libstore/daemon.cc +++ b/src/libstore/daemon.cc @@ -260,14 +260,14 @@ static void writeValidPathInfo( } } -static std::vector<BuildableReq> readBuildableReqs(Store & store, unsigned int clientVersion, Source & from) +static std::vector<DerivedPath> readDerivedPaths(Store & store, unsigned int clientVersion, Source & from) { - std::vector<BuildableReq> reqs; + std::vector<DerivedPath> reqs; if (GET_PROTOCOL_MINOR(clientVersion) >= 29) { - reqs = worker_proto::read(store, from, Phantom<std::vector<BuildableReq>> {}); + reqs = worker_proto::read(store, from, Phantom<std::vector<DerivedPath>> {}); } else { for (auto & s : readStrings<Strings>(from)) - reqs.push_back(parsePathWithOutputs(store, s).toBuildableReq()); + reqs.push_back(parsePathWithOutputs(store, s).toDerivedPath()); } return reqs; } @@ -510,7 +510,7 @@ static void performOp(TunnelLogger * logger, ref<Store> store, } case wopBuildPaths: { - auto drvs = readBuildableReqs(*store, clientVersion, from); + auto drvs = readDerivedPaths(*store, clientVersion, from); BuildMode mode = bmNormal; if (GET_PROTOCOL_MINOR(clientVersion) >= 15) { mode = (BuildMode) readInt(from); @@ -874,7 +874,7 @@ static void performOp(TunnelLogger * logger, ref<Store> store, } case wopQueryMissing: { - auto targets = readBuildableReqs(*store, clientVersion, from); + auto targets = readDerivedPaths(*store, clientVersion, from); logger->startWork(); StorePathSet willBuild, willSubstitute, unknown; uint64_t downloadSize, narSize; |