From 87a284335715301fa2cea695386bfcd21a2fe781 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Thu, 26 Oct 2023 19:37:02 +0300 Subject: Load both user and dependent configurations in (pre-)reevaluate modes --- bpkg/pkg-build-collect.cxx | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'bpkg/pkg-build-collect.cxx') diff --git a/bpkg/pkg-build-collect.cxx b/bpkg/pkg-build-collect.cxx index b1306b5..f664bf7 100644 --- a/bpkg/pkg-build-collect.cxx +++ b/bpkg/pkg-build-collect.cxx @@ -366,7 +366,8 @@ namespace bpkg init_skeleton (const common_options& options, const shared_ptr& override, optional src_root, - optional out_root) + optional out_root, + bool load_old_dependent_config) { shared_ptr ap (override != nullptr ? override @@ -406,7 +407,8 @@ namespace bpkg disfigure, (selected != nullptr ? &selected->config_variables : nullptr), move (src_root), - move (out_root)); + move (out_root), + load_old_dependent_config); return *skeleton; } @@ -2108,15 +2110,16 @@ namespace bpkg if (!pkg.skeleton) { - // In the pre-reevaluation mode make sure that the user-specified - // configuration is loaded by the skeleton. + // In the (pre-)reevaluation mode make sure that the user-specified + // and the dependent configurations are both loaded by the skeleton. // - if (pre_reeval) + if (pre_reeval || reeval) { pkg.init_skeleton (options, nullptr /* override */, sp->effective_src_root (pdb.config), - sp->effective_out_root (pdb.config)); + sp->effective_out_root (pdb.config), + true /* load_old_dependent_config */); } else pkg.init_skeleton (options); -- cgit v1.1