From 00a83b2ab6ca84776dfb5bec1679863c1896a813 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Wed, 25 Aug 2021 20:24:57 +0300 Subject: Consider repository information from ultimate dependent databases rather then from just main database --- bpkg/pkg-checkout.hxx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'bpkg/pkg-checkout.hxx') diff --git a/bpkg/pkg-checkout.hxx b/bpkg/pkg-checkout.hxx index d910509..b775b07 100644 --- a/bpkg/pkg-checkout.hxx +++ b/bpkg/pkg-checkout.hxx @@ -76,6 +76,10 @@ namespace bpkg erase (state_map::iterator, bool ignore_errors = false); }; + // Note that for the following functions both package and repository + // information configurations need to be passed. + // + // Check out the package from a version control-based repository into a // directory other than the configuration directory and commit the // transaction. Return the selected package object which may replace the @@ -84,7 +88,8 @@ namespace bpkg shared_ptr pkg_checkout (pkg_checkout_cache&, const common_options&, - database&, + database& pdb, + database& rdb, transaction&, package_name, version, @@ -100,7 +105,8 @@ namespace bpkg shared_ptr pkg_checkout (pkg_checkout_cache&, const common_options&, - database&, + database& pdb, + database& rdb, transaction&, package_name, version, -- cgit v1.1