diff options
author | eldritch horrors <pennae@lix.systems> | 2024-07-20 21:05:19 +0200 |
---|---|---|
committer | eldritch horrors <pennae@lix.systems> | 2024-07-22 19:01:40 +0000 |
commit | d70e045f90e8b41b5b9f1fa0777d98eed64afb17 (patch) | |
tree | 4f99b600f0a96451e786fcc21c4b22df89559595 /src/libstore/build/goal.cc | |
parent | 20f53346df1e0150e4cbfd1b07023e511c277546 (diff) |
libstore: remove Goal::ecBusy
this should be an optional. "busy" is not an *exit* code!
Change-Id: Ic231cb27b022312b1a7a7b9602f32845b7a9c934
Diffstat (limited to 'src/libstore/build/goal.cc')
-rw-r--r-- | src/libstore/build/goal.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/libstore/build/goal.cc b/src/libstore/build/goal.cc index f8db98280..2704fc6ab 100644 --- a/src/libstore/build/goal.cc +++ b/src/libstore/build/goal.cc @@ -79,8 +79,7 @@ void Goal::waiteeDone(GoalPtr waitee, ExitCode result) void Goal::amDone(ExitCode result, std::optional<Error> ex) { trace("done"); - assert(exitCode == ecBusy); - assert(result == ecSuccess || result == ecFailed || result == ecNoSubstituters || result == ecIncompleteClosure); + assert(!exitCode.has_value()); exitCode = result; if (ex) { |