mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-26 15:56:18 +02:00
nix-store --serve: Don't loop forever
nix-store --export takes a tmproot, which can only release by exiting. Substituters don't currently work in a way that could take advantage of the looping, anyway. Signed-off-by: Shea Levy <shea@shealevy.com>
This commit is contained in:
parent
3a38d0f356
commit
9488447594
1 changed files with 25 additions and 26 deletions
|
@ -260,7 +260,7 @@ string StoreAPI::makeValidityRegistration(const PathSet & paths,
|
||||||
|
|
||||||
void StoreAPI::serve(Source & in, Sink & out, bool sign)
|
void StoreAPI::serve(Source & in, Sink & out, bool sign)
|
||||||
{
|
{
|
||||||
for (string cmd = readString(in); !cmd.empty(); cmd = readString(in)) {
|
string cmd = readString(in);
|
||||||
if (cmd == "query") {
|
if (cmd == "query") {
|
||||||
for (cmd = readString(in); !cmd.empty(); cmd = readString(in)) {
|
for (cmd = readString(in); !cmd.empty(); cmd = readString(in)) {
|
||||||
PathSet paths = readStrings<PathSet>(in);
|
PathSet paths = readStrings<PathSet>(in);
|
||||||
|
@ -285,7 +285,6 @@ void StoreAPI::serve(Source & in, Sink & out, bool sign)
|
||||||
exportPath(readString(in), sign, out);
|
exportPath(readString(in), sign, out);
|
||||||
else
|
else
|
||||||
throw Error(format("Unknown serve command `%1%'") % cmd);
|
throw Error(format("Unknown serve command `%1%'") % cmd);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue