From a72e358d7a2df330f61ad9e73137b18225bdc5cc Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Thu, 26 Oct 2023 17:20:37 +0300 Subject: Scratch plan on refinement caused by dependency up/down-grade/drop if any unsatisfied dependents have been ignored --- bpkg/pkg-build.cxx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/bpkg/pkg-build.cxx b/bpkg/pkg-build.cxx index c531480..4ff013e 100644 --- a/bpkg/pkg-build.cxx +++ b/bpkg/pkg-build.cxx @@ -4926,11 +4926,14 @@ namespace bpkg // diagnostics run. Otherwise, if any dependency configuration // negotiation has been performed during the current plan refinement // iteration, then rebuild the plan from scratch (see above for - // details). + // details). Also rebuild it from from scratch if any unsatisfied + // dependents have been ignored, since their unsatisfied constraints + // are now added to the dependencies' build_package::constraints + // lists. // if (!refine) need_refinement (true /* diag */); - else if (!postponed_cfgs.empty ()) + else if (!postponed_cfgs.empty () || !unsatisfied_depts.empty ()) scratch_exe = true; } -- cgit v1.1