about summary refs log tree commit diff
path: root/src/libstore
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2006-12-02T14·27+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2006-12-02T14·27+0000
commit8ba5d32769560d32cb5e1e83fd30fb6da0b145f4 (patch)
tree5387182858fe66bba87f0f0891507fc248ccbaef /src/libstore
parentfcd9900d74b0eb3d57402c448ede2a411133fa46 (diff)
* Remove queryPathHash().
* Help for nix-worker.

Diffstat (limited to 'src/libstore')
-rw-r--r--src/libstore/remote-store.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/libstore/remote-store.cc b/src/libstore/remote-store.cc
index bcae21bf7650..2391fd9e87f1 100644
--- a/src/libstore/remote-store.cc
+++ b/src/libstore/remote-store.cc
@@ -98,7 +98,10 @@ bool RemoteStore::hasSubstitutes(const Path & path)
 
 Hash RemoteStore::queryPathHash(const Path & path)
 {
-    throw Error("not implemented 3");
+    writeInt(wopQueryPathHash, to);
+    writeString(path, to);
+    string hash = readString(from);
+    return parseHash(htSHA256, hash);
 }