From 37af85f5b084c234a350235690eb944984567e78 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Fri, 7 Jul 2023 14:08:34 +0300 Subject: Add odb sections to build_package class --- monitor/monitor.cxx | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) (limited to 'monitor') diff --git a/monitor/monitor.cxx b/monitor/monitor.cxx index 7dab2a0..eba6e2b 100644 --- a/monitor/monitor.cxx +++ b/monitor/monitor.cxx @@ -601,13 +601,18 @@ namespace brep p->configs) : nullptr); - cleanup = (pc == nullptr || - !p->buildable || - exclude (*pc, - p->builds, - p->constraints, - *ci->second, - configs.class_inheritance_map)); + cleanup = (pc == nullptr || !p->buildable); + + if (!cleanup) + { + db.load (*p, p->constraints_section); + + cleanup = exclude (*pc, + p->builds, + p->constraints, + *ci->second, + configs.class_inheritance_map); + } } if (cleanup) @@ -818,6 +823,8 @@ namespace brep { shared_ptr p (db.load (bp.id)); + db.load (*p, p->constraints_section); + for (const build_package_config& pc: p->configs) { for (const build_target_config& tc: configs) -- cgit v1.1