aboutsummaryrefslogtreecommitdiff
path: root/mod/mod-build-force.cxx
diff options
context:
space:
mode:
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);