about summary refs log tree commit diff
path: root/src/libstore/store-api.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstore/store-api.cc')
-rw-r--r--src/libstore/store-api.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/libstore/store-api.cc b/src/libstore/store-api.cc
index 082c2c4d9740..bd95590756de 100644
--- a/src/libstore/store-api.cc
+++ b/src/libstore/store-api.cc
@@ -1,6 +1,7 @@
 #include "store-api.hh"
 #include "globals.hh"
 #include "util.hh"
+#include "archive.hh"
 
 #include <climits>
 
@@ -258,7 +259,7 @@ string StoreAPI::makeValidityRegistration(const PathSet & paths,
 }
 
 
-void StoreAPI::serve(Source & in, Sink & out, bool sign)
+void StoreAPI::serve(Source & in, Sink & out)
 {
     string cmd = readString(in);
     if (cmd == "query") {
@@ -284,7 +285,7 @@ void StoreAPI::serve(Source & in, Sink & out, bool sign)
                 throw Error(format("Unknown serve query `%1%'") % cmd);
         }
     } else if (cmd == "substitute")
-        exportPath(readString(in), sign, out);
+        dumpPath(readString(in), out);
     else
         throw Error(format("Unknown serve command `%1%'") % cmd);
 }