From f83ae9ce7a2d7f3158ca043d947b230f27dbe7bd Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Wed, 17 May 2023 21:16:13 +0300 Subject: Postpone failure due to unsatisfied dependency constraint for existing dependent --- bpkg/pkg-configure.hxx | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) (limited to 'bpkg/pkg-configure.hxx') diff --git a/bpkg/pkg-configure.hxx b/bpkg/pkg-configure.hxx index c4c2758..099e1e8 100644 --- a/bpkg/pkg-configure.hxx +++ b/bpkg/pkg-configure.hxx @@ -68,6 +68,9 @@ namespace bpkg // dependency decisions" mode). Failed that, select an alternative as if no // prerequisites are specified (the "make dependency decisions" mode). // + // Optionally, remove constraints from the specified dependencies + // (unconstrain_deps). Only allowed in the simulation mode. + // struct configure_prerequisites_result { package_prerequisites prerequisites; @@ -92,17 +95,18 @@ namespace bpkg // Note: loads selected packages. // configure_prerequisites_result - pkg_configure_prerequisites (const common_options&, - database&, - transaction&, - const dependencies&, - const vector* alternatives, - package_skeleton&&, - const vector* prev_prerequisites, - bool simulate, - const function&, - const function&); - + pkg_configure_prerequisites ( + const common_options&, + database&, + transaction&, + const dependencies&, + const vector* alternatives, + package_skeleton&&, + const vector* prev_prerequisites, + bool simulate, + const function&, + const function&, + const vector* unconstrain_deps = nullptr); // Configure the package, update its state, and commit the transaction. // -- cgit v1.1