From 8226c7c7a2bffc96d70f297e792f3c0afbce67f0 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Sat, 2 Sep 2023 22:54:21 +0300 Subject: Scratch plan on refinement caused by dependency up/down-grade/drop if any configuration negotiation has been performed --- bpkg/pkg-build-collect.hxx | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'bpkg/pkg-build-collect.hxx') diff --git a/bpkg/pkg-build-collect.hxx b/bpkg/pkg-build-collect.hxx index 3621732..1ce6962 100644 --- a/bpkg/pkg-build-collect.hxx +++ b/bpkg/pkg-build-collect.hxx @@ -1090,8 +1090,6 @@ namespace bpkg // instead. Add entry to replaced_vers and throw replace_version if the // existing version needs to be replaced but the new version cannot be // re-collected recursively in-place (see replaced_versions for details). - // Also add an entry and throw if the existing dependent needs to be - // replaced. // // Optionally, pass the function which verifies the chosen package // version. It is called before replace_version is potentially thrown or @@ -1470,6 +1468,18 @@ namespace bpkg replaced_versions&, postponed_configurations&); + // Non-recursively collect an existing non-deviated dependent previously + // returned by the query_existing_dependents() function call for the + // subsequent re-evaluation. + // + void + collect_existing_dependent ( + const pkg_build_options&, + const existing_dependent&, + postponed_configuration::packages&& dependencies, + replaced_versions&, + postponed_configurations&); + // Non-recursively collect the deviated existing dependent previously // returned by the query_existing_dependents() function call and add it to // the postponed package recollections list. -- cgit v1.1