summary refs log tree commit diff
path: root/src/nix-worker/nix-worker.cc
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2010-02-25 15:52:22 +0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2010-02-25 15:52:22 +0000
commite42401ee7b0c0b166677595d4fd1255176ba33c2 (patch)
tree084c328df6c2295f612a8a888e0f2527bcf6ec97 /src/nix-worker/nix-worker.cc
parentaf565c348a286fb55ad17f8c3c4233465d32a9f6 (diff)
downloadguix-e42401ee7b0c0b166677595d4fd1255176ba33c2.tar.gz
* Implement RemoteStore::queryDerivationOutputs().
Diffstat (limited to 'src/nix-worker/nix-worker.cc')
-rw-r--r--src/nix-worker/nix-worker.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/nix-worker/nix-worker.cc b/src/nix-worker/nix-worker.cc
index 362b9b9287..59ab487761 100644
--- a/src/nix-worker/nix-worker.cc
+++ b/src/nix-worker/nix-worker.cc
@@ -313,14 +313,16 @@ static void performOp(unsigned int clientVersion,
     }
 
     case wopQueryReferences:
-    case wopQueryReferrers: {
+    case wopQueryReferrers:
+    case wopQueryDerivationOutputs: {
         Path path = readStorePath(from);
         startWork();
         PathSet paths;
         if (op == wopQueryReferences)
             store->queryReferences(path, paths);
-        else
+        else if (op == wopQueryReferrers)
             store->queryReferrers(path, paths);
+        else paths = store->queryDerivationOutputs(path);
         stopWork();
         writeStringSet(paths, to);
         break;