diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2017-05-19 16:19:29 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2017-05-19 16:19:29 +0300 |
commit | 90a6531951546ae88a695410013b908b50cd6fd0 (patch) | |
tree | 441f38bf549354469370ca781801c591dc89aadc /mod/mod-builds.cxx | |
parent | d1d777fbe517b00544402cc8bdaa99c6550ce417 (diff) |
Rename build states to unbuilt, building and built
Diffstat (limited to 'mod/mod-builds.cxx')
-rw-r--r-- | mod/mod-builds.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/mod/mod-builds.cxx b/mod/mod-builds.cxx index adbd9bf..c831359 100644 --- a/mod/mod-builds.cxx +++ b/mod/mod-builds.cxx @@ -97,7 +97,7 @@ build_query (const C& configs, const brep::params::builds& params) query q ( query::id.configuration.in_range (configs.begin (), configs.end ()) && - (query::state == "testing" || query::state == "tested")); + (query::state == "building" || query::state == "built")); // Note that there is no error reported if the filter parameters parsing // fails. Instead, it is considered that no package builds match such a @@ -164,7 +164,7 @@ build_query (const C& configs, const brep::params::builds& params) if (rs == "pending") q = q && query::forced; else if (rs == "building") - q = q && query::state == "testing"; + q = q && query::state == "building"; else { query sq (query::status == rs); @@ -381,11 +381,11 @@ handle (request& rq, response& rs) << TD << SPAN(CLASS="value"); - if (b.state == build_state::testing) + if (b.state == build_state::building) s << "building"; else { - assert (b.state == build_state::tested); + assert (b.state == build_state::built); build_db_->load (b, b.results_section); |