diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2023-07-07 14:08:34 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2023-07-07 15:19:59 +0300 |
commit | 37af85f5b084c234a350235690eb944984567e78 (patch) | |
tree | 8a63a39711e9831e456ebdc1f783c10053805865 /monitor/monitor.cxx | |
parent | b125c5f1ca398d4c912ecfba3bf451bfa63b6293 (diff) |
Add odb sections to build_package class
Diffstat (limited to 'monitor/monitor.cxx')
-rw-r--r-- | monitor/monitor.cxx | 21 |
1 files changed, 14 insertions, 7 deletions
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<build_package> p (db.load<build_package> (bp.id)); + db.load (*p, p->constraints_section); + for (const build_package_config& pc: p->configs) { for (const build_target_config& tc: configs) |