aboutsummaryrefslogtreecommitdiff
path: root/libbrep
diff options
context:
space:
mode:
Diffstat (limited to 'libbrep')
-rw-r--r--libbrep/build.cxx14
-rw-r--r--libbrep/build.hxx12
2 files changed, 13 insertions, 13 deletions
diff --git a/libbrep/build.cxx b/libbrep/build.cxx
index 33aad45..ece2fd7 100644
--- a/libbrep/build.cxx
+++ b/libbrep/build.cxx
@@ -13,9 +13,9 @@ namespace brep
{
switch (s)
{
- case build_state::untested: return "untested";
- case build_state::testing: return "testing";
- case build_state::tested: return "tested";
+ case build_state::unbuilt: return "unbuilt";
+ case build_state::building: return "building";
+ case build_state::built: return "built";
}
return string (); // Should never reach.
@@ -24,9 +24,9 @@ namespace brep
build_state
to_build_state (const string& s)
{
- if (s == "untested") return build_state::untested;
- else if (s == "testing") return build_state::testing;
- else if (s == "tested") return build_state::tested;
+ if (s == "unbuilt") return build_state::unbuilt;
+ else if (s == "building") return build_state::building;
+ else if (s == "built") return build_state::built;
else throw invalid_argument ("invalid build state '" + s + "'");
}
@@ -44,7 +44,7 @@ namespace brep
configuration (id.configuration),
toolchain_name (move (tnm)),
toolchain_version (move (tvr)),
- state (build_state::testing),
+ state (build_state::building),
timestamp (timestamp_type::clock::now ()),
forced (false),
machine (move (mnm)),
diff --git a/libbrep/build.hxx b/libbrep/build.hxx
index 112100a..9258bb3 100644
--- a/libbrep/build.hxx
+++ b/libbrep/build.hxx
@@ -64,9 +64,9 @@ namespace brep
//
enum class build_state: std::uint8_t
{
- untested,
- testing,
- tested
+ unbuilt,
+ building,
+ built
};
string
@@ -117,7 +117,7 @@ namespace brep
public:
using timestamp_type = brep::timestamp;
- // Create the build object with the testing state, non-existent status,
+ // Create the build object with the building state, non-existent status,
// the timestamp set to now and the forced flag set to false.
//
build (string package_name, version package_version,
@@ -144,11 +144,11 @@ namespace brep
//
bool forced;
- // Present only if the state is 'tested'.
+ // Must present for the built state, may present for the building state.
//
optional<result_status> status;
- // Present only if the state is 'testing' or 'tested'.
+ // Present only for building and built states.
//
optional<string> machine;
optional<string> machine_summary;