mirror of
https://github.com/NixOS/nix.git
synced 2024-11-24 15:52:30 +00:00
Fix build
This commit is contained in:
parent
69a6e650bf
commit
540704e0aa
@ -586,16 +586,16 @@ public:
|
||||
}
|
||||
|
||||
else if (type == resExpectBuild)
|
||||
actInfo.buildsRemaining.insert(getS(fields, 0));
|
||||
actInfo.buildsRemaining.insert(std::string { getS(fields, 0) });
|
||||
|
||||
else if (type == resUnexpectBuild)
|
||||
actInfo.buildsRemaining.erase(getS(fields, 0));
|
||||
actInfo.buildsRemaining.erase(std::string { getS(fields, 0) });
|
||||
|
||||
else if (type == resExpectSubstitution)
|
||||
actInfo.substitutionsRemaining.insert(getS(fields, 0));
|
||||
actInfo.substitutionsRemaining.insert(std::string { getS(fields, 0) });
|
||||
|
||||
else if (type == resUnexpectSubstitution)
|
||||
actInfo.substitutionsRemaining.erase(getS(fields, 0));
|
||||
actInfo.substitutionsRemaining.erase(std::string { getS(fields, 0) });
|
||||
}
|
||||
|
||||
void update(State & state)
|
||||
@ -815,7 +815,7 @@ public:
|
||||
s += "\r\e[K";
|
||||
|
||||
if (msg) {
|
||||
s += replaceStrings(*msg, "\n", "\r\n");
|
||||
s += replaceStrings(std::string { *msg }, "\n", "\r\n");
|
||||
s += ANSI_NORMAL "\e[K\n\r";
|
||||
}
|
||||
|
||||
|
@ -359,8 +359,6 @@ void mainWrapped(int argc, char * * argv)
|
||||
|
||||
setLogFormat(LogFormat::bar);
|
||||
|
||||
Finally f([] { logger->stop(); });
|
||||
|
||||
if (!args.command)
|
||||
throw UsageError("no subcommand specified");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user