aboutsummaryrefslogtreecommitdiff
path: root/mod/mod-build-force.cxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2017-05-14 00:37:16 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2017-05-15 20:37:43 +0300
commit5163436b00711318baea4fc0ad43a4de8222354a (patch)
treea05c06693bda84dd9a9b365a50c227126a5ec05f /mod/mod-build-force.cxx
parent2ebf9de408f3fd629126a20b21221e186195813c (diff)
Implement builds page
Diffstat (limited to 'mod/mod-build-force.cxx')
-rw-r--r--mod/mod-build-force.cxx8
1 files changed, 2 insertions, 6 deletions
diff --git a/mod/mod-build-force.cxx b/mod/mod-build-force.cxx
index 90e6b92..ed63146 100644
--- a/mod/mod-build-force.cxx
+++ b/mod/mod-build-force.cxx
@@ -141,12 +141,8 @@ handle (request& rq, response& rs)
// Make sure the build configuration still exists.
//
- auto i (
- find_if (
- build_conf_->begin (), build_conf_->end (),
- [&id] (const build_config& c) {return c.name == id.configuration;}));
-
- if (i == build_conf_->end ())
+ if (build_conf_map_->find (id.configuration.c_str ()) ==
+ build_conf_map_->end ())
config_expired ("no configuration");
// Make sure the package still exists.