diff options
Diffstat (limited to 'src/libstore/store-api.hh')
-rw-r--r-- | src/libstore/store-api.hh | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/src/libstore/store-api.hh b/src/libstore/store-api.hh index afc7376fe9ff..d04a040bb95c 100644 --- a/src/libstore/store-api.hh +++ b/src/libstore/store-api.hh @@ -103,13 +103,23 @@ enum BuildMode { bmNormal, bmRepair, bmCheck }; struct BuildResult { enum Status { - Success = 0, - PermanentFailure = 1, - TimedOut = 2, - MiscFailure = 3 + Built = 0, + Substituted, + AlreadyValid, + PermanentFailure, + InputRejected, + OutputRejected, + TransientFailure, // possibly transient + CachedFailure, + TimedOut, + MiscFailure, + DependencyFailed } status = MiscFailure; std::string errorMsg; //time_t startTime = 0, stopTime = 0; + bool success() { + return status == Built || status == Substituted || status == AlreadyValid; + } }; |