From 3d9de41a5b86520ff0c994dc7ac1023d2a441083 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 29 Jun 2021 21:17:48 +0200 Subject: Hacky fast closure copying mechanism --- src/libstore/daemon.cc | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/libstore/daemon.cc') diff --git a/src/libstore/daemon.cc b/src/libstore/daemon.cc index e06fb9ce2..468152f7f 100644 --- a/src/libstore/daemon.cc +++ b/src/libstore/daemon.cc @@ -505,6 +505,17 @@ static void performOp(TunnelLogger * logger, ref store, break; } + case wopImportPaths2: { + logger->startWork(); + auto paths = store->importPaths(from, + trusted ? NoCheckSigs : CheckSigs); + logger->stopWork(); + Strings paths2; + for (auto & i : paths) paths2.push_back(store->printStorePath(i)); + to << paths2; + break; + } + case wopBuildPaths: { auto drvs = readDerivedPaths(*store, clientVersion, from); BuildMode mode = bmNormal; -- cgit v1.2.3