From 90a6531951546ae88a695410013b908b50cd6fd0 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Fri, 19 May 2017 16:19:29 +0300 Subject: Rename build states to unbuilt, building and built --- libbrep/build.cxx | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'libbrep/build.cxx') 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)), -- cgit v1.1