aboutsummaryrefslogtreecommitdiff
path: root/mod/mod-build-force.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-build-force.cxx
parent6afd16cfb93ca1cf943b7f304bf4b1ab781179b6 (diff)
Get rid of package configuration unbuilt state
Diffstat (limited to 'mod/mod-build-force.cxx')
-rw-r--r--mod/mod-build-force.cxx7
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);