aboutsummaryrefslogtreecommitdiff
path: root/mod/mod-build-result.cxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2017-05-19 19:39:21 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2017-05-19 19:39:21 +0300
commitc51ccc69ed4039fac8ebfbd7c2fcaf0abb8341d0 (patch)
tree66588196d841fb8174122c1ee61450ec5b4f841b /mod/mod-build-result.cxx
parent90a6531951546ae88a695410013b908b50cd6fd0 (diff)
Allow to enforce rebuild for building state
Diffstat (limited to 'mod/mod-build-result.cxx')
-rw-r--r--mod/mod-build-result.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/mod/mod-build-result.cxx b/mod/mod-build-result.cxx
index d78c45f..f2b4ffd 100644
--- a/mod/mod-build-result.cxx
+++ b/mod/mod-build-result.cxx
@@ -248,13 +248,14 @@ handle (request& rq, response&)
// build was forced.
//
notify = !(rqm.result.status == result_status::success &&
- b->status && *b->status == rqm.result.status && !b->forced);
+ b->status && *b->status == rqm.result.status &&
+ b->force == force_state::unforced);
prev_status = move (b->status);
- b->state = build_state::built;
+ b->state = build_state::built;
b->status = rqm.result.status;
- b->forced = false;
+ b->force = force_state::unforced;
// Mark the section as loaded, so results are updated.
//