aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/daemon.cc
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2021-06-29 21:17:48 +0200
committerEelco Dolstra <edolstra@gmail.com>2021-07-22 09:59:51 +0200
commit3d9de41a5b86520ff0c994dc7ac1023d2a441083 (patch)
treecdeb97e5054a32318ca8640f9effbf180ba1a40f /src/libstore/daemon.cc
parentbef40c29491ba9b31c85b9b89a5342979344f583 (diff)
Hacky fast closure copying mechanism
Diffstat (limited to 'src/libstore/daemon.cc')
-rw-r--r--src/libstore/daemon.cc11
1 files changed, 11 insertions, 0 deletions
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> 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;