aboutsummaryrefslogtreecommitdiff
path: root/mod/mod-build-task.cxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2021-04-09 13:00:28 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2021-04-09 13:00:28 +0300
commit7b5c9f19c4ea3d1cf1aa91a10796dfc10d954da6 (patch)
tree31bb64f9c282e2c4a7837c4f865a945746f03909 /mod/mod-build-task.cxx
parent5a54dec1641cafdff19badb1f6ae91bed2456f9b (diff)
Fix broken package rebuild
Diffstat (limited to 'mod/mod-build-task.cxx')
-rw-r--r--mod/mod-build-task.cxx9
1 files changed, 5 insertions, 4 deletions
diff --git a/mod/mod-build-task.cxx b/mod/mod-build-task.cxx
index ebf434a..de75c07 100644
--- a/mod/mod-build-task.cxx
+++ b/mod/mod-build-task.cxx
@@ -787,10 +787,11 @@ handle (request& rq, response& rs)
? build_db_->load<build_tenant> (p->id.tenant)
: nullptr);
- if (p != nullptr &&
- p->buildable &&
- (t->interactive.has_value () ==
- (imode != interactive_mode::false_)) &&
+ if (p != nullptr &&
+ p->buildable &&
+ (imode == interactive_mode::both ||
+ (t->interactive.has_value () ==
+ (imode == interactive_mode::true_))) &&
!exclude (p->builds, p->constraints, *cm.config))
{
assert (b->status);