diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2017-06-09 16:25:20 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2017-06-14 17:51:00 +0300 |
commit | da701337ca32a54682a0daddcd2ab85a2f886a18 (patch) | |
tree | db1c7cbbc6b64c4daf0d21c711ebb7583b98a765 /mod/mod-build-force.cxx | |
parent | 6afd16cfb93ca1cf943b7f304bf4b1ab781179b6 (diff) |
Get rid of package configuration unbuilt state
Diffstat (limited to 'mod/mod-build-force.cxx')
-rw-r--r-- | mod/mod-build-force.cxx | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/mod/mod-build-force.cxx b/mod/mod-build-force.cxx index c0c3d2d..325a1c7 100644 --- a/mod/mod-build-force.cxx +++ b/mod/mod-build-force.cxx @@ -166,13 +166,6 @@ handle (request& rq, response& rs) if (b == nullptr) config_expired ("no package configuration"); - // Respond with 409 (conflict) if the package configuration is in - // inappropriate state for being rebuilt. - // - else if (b->state != build_state::built && - b->state != build_state::building) - throw invalid_request (409, "state is " + to_string (b->state)); - force_state force (b->state == build_state::built ? force_state::forced : force_state::forcing); |