aboutsummaryrefslogtreecommitdiff
path: root/mod/mod-builds.cxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2017-06-09 16:25:20 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2017-06-14 17:51:00 +0300
commitda701337ca32a54682a0daddcd2ab85a2f886a18 (patch)
treedb1c7cbbc6b64c4daf0d21c711ebb7583b98a765 /mod/mod-builds.cxx
parent6afd16cfb93ca1cf943b7f304bf4b1ab781179b6 (diff)
Get rid of package configuration unbuilt state
Diffstat (limited to 'mod/mod-builds.cxx')
-rw-r--r--mod/mod-builds.cxx12
1 files changed, 3 insertions, 9 deletions
diff --git a/mod/mod-builds.cxx b/mod/mod-builds.cxx
index 8bd6f88..da72e17 100644
--- a/mod/mod-builds.cxx
+++ b/mod/mod-builds.cxx
@@ -96,8 +96,7 @@ build_query (const C& configs, const brep::params::builds& params)
};
query q (
- query::id.configuration.in_range (configs.begin (), configs.end ()) &&
- (query::state == "building" || query::state == "built"));
+ query::id.configuration.in_range (configs.begin (), configs.end ()));
// Note that there is no error reported if the filter parameters parsing
// fails. Instead, it is considered that no package builds match such a
@@ -363,8 +362,6 @@ handle (request& rq, response& rs)
"OFFSET" + to_string (page * page_configs) +
"LIMIT" + to_string (page_configs)))
{
- assert (b.machine);
-
string ts (butl::to_string (b.timestamp,
"%Y-%m-%d %H:%M:%S %Z",
true,
@@ -376,10 +373,9 @@ handle (request& rq, response& rs)
<< TR_NAME (b.package_name, string (), root)
<< TR_VERSION (b.package_name, b.package_version, root)
<< TR_VALUE ("toolchain",
- b.toolchain_name + '-' +
- b.toolchain_version.string ())
+ b.toolchain_name + '-' + b.toolchain_version.string ())
<< TR_VALUE ("config", b.configuration)
- << TR_VALUE ("machine", *b.machine)
+ << TR_VALUE ("machine", b.machine)
<< TR_VALUE ("target", b.target ? b.target->string () : "<default>")
<< TR_VALUE ("timestamp", ts)
<< TR(CLASS="result")
@@ -391,8 +387,6 @@ handle (request& rq, response& rs)
s << "building | ";
else
{
- assert (b.state == build_state::built);
-
build_db_->load (b, b.results_section);
// If no unsuccessful operations results available, then print the