diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2021-08-25 20:24:57 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2021-08-30 15:57:58 +0300 |
commit | 00a83b2ab6ca84776dfb5bec1679863c1896a813 (patch) | |
tree | 5d0e1a96fb5ab5ba1bb32620c1eb265fc519d122 /bpkg/package.hxx | |
parent | e30e71dee35d8e7b1a1c4759bc839533521033e8 (diff) |
Consider repository information from ultimate dependent databases rather then from just main database
Diffstat (limited to 'bpkg/package.hxx')
-rw-r--r-- | bpkg/package.hxx | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/bpkg/package.hxx b/bpkg/package.hxx index 1c643b3..6256481 100644 --- a/bpkg/package.hxx +++ b/bpkg/package.hxx @@ -18,7 +18,7 @@ #include <libbpkg/package-name.hxx> #include <bpkg/types.hxx> -#include <bpkg/forward.hxx> // database, transaction +#include <bpkg/forward.hxx> // database, linked_databases, transaction #include <bpkg/utility.hxx> #include <bpkg/diagnostics.hxx> @@ -826,11 +826,16 @@ namespace bpkg odb::result<available_package>&&, bool prereq = true); - // Check if there are packages available in the configuration. If that's not - // the case then print the info message into the diag record or, if it is - // NULL, print the error message and fail. + // Check if there are packages available in the specified configurations. If + // that's not the case then print the info message into the diag record or, + // if it is NULL, print the error message and fail. // void + check_any_available (const linked_databases&, + transaction&, + const diag_record* = nullptr); + + void check_any_available (database&, transaction&, const diag_record* = nullptr); // package_state |