From 15dff3c592385466406732cd6ced809dc28cf2e2 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Wed, 21 Mar 2018 21:40:28 +0300 Subject: Implement build plan simulation --- bpkg/pkg-configure.hxx | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'bpkg/pkg-configure.hxx') diff --git a/bpkg/pkg-configure.hxx b/bpkg/pkg-configure.hxx index 9ad36f4..faf37bc 100644 --- a/bpkg/pkg-configure.hxx +++ b/bpkg/pkg-configure.hxx @@ -24,21 +24,25 @@ namespace bpkg const common_options&, transaction&, const shared_ptr&, - const strings& config_vars); + const dependencies&, + const strings& config_vars, + bool simulate); // Configure a system package and commit the transaction. // shared_ptr pkg_configure_system (const string& name, const version&, transaction&); - // Verify that a directory is a valid package and return its prerequisites. - // Fail if the directory is not a valid package or some of the prerequisites - // are not configured or don't satisfy the package's dependency constraints. + // Return package prerequisites given its dependencies. Fail if some of the + // prerequisites are not configured or don't satisfy the package's + // dependency constraints. Note that the package argument is used for + // diagnostics only. // package_prerequisites pkg_configure_prerequisites (const common_options&, transaction&, - const dir_path& package); + const dependencies&, + const string& package); } #endif // BPKG_PKG_CONFIGURE_HXX -- cgit v1.1