nix-store --serve: Use dump instead of export
Also remove signing support Signed-off-by: Shea Levy <shea@shealevy.com>
This commit is contained in:
parent
188f96500b
commit
73874629ef
3 changed files with 7 additions and 12 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -251,7 +251,7 @@ public:
|
|||
|
||||
/* Serve the store for ssh substituters by taking commands
|
||||
* from in and printing results to out */
|
||||
void serve(Source & in, Sink & out, bool sign);
|
||||
void serve(Source & in, Sink & out);
|
||||
};
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue