From 7b5c9f19c4ea3d1cf1aa91a10796dfc10d954da6 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Fri, 9 Apr 2021 13:00:28 +0300 Subject: Fix broken package rebuild --- mod/mod-build-task.cxx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'mod') 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 (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); -- cgit v1.1