diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2021-06-29 21:17:48 +0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2021-07-22 09:59:51 +0200 |
commit | 3d9de41a5b86520ff0c994dc7ac1023d2a441083 (patch) | |
tree | cdeb97e5054a32318ca8640f9effbf180ba1a40f /src/libstore/daemon.cc | |
parent | bef40c29491ba9b31c85b9b89a5342979344f583 (diff) |
Hacky fast closure copying mechanism
Diffstat (limited to 'src/libstore/daemon.cc')
-rw-r--r-- | src/libstore/daemon.cc | 11 |
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; |