mirror of
https://github.com/NixOS/nix
synced 2025-06-28 01:11:15 +02:00
build-hook: If there are no machines defined, quit permanently
This commit is contained in:
parent
70581b6363
commit
174b68a2a2
2 changed files with 14 additions and 2 deletions
|
@ -1598,8 +1598,15 @@ HookReply DerivationGoal::tryBuildHook()
|
|||
|
||||
debug(format("hook reply is ‘%1%’") % reply);
|
||||
|
||||
if (reply == "decline" || reply == "postpone")
|
||||
return reply == "decline" ? rpDecline : rpPostpone;
|
||||
if (reply == "decline")
|
||||
return rpDecline;
|
||||
else if (reply == "decline-permanently") {
|
||||
settings.useBuildHook = false;
|
||||
worker.hook = 0;
|
||||
return rpDecline;
|
||||
}
|
||||
else if (reply == "postpone")
|
||||
return rpPostpone;
|
||||
else if (reply != "accept")
|
||||
throw Error(format("bad hook reply ‘%1%’") % reply);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue