diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2023-07-31 22:01:32 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2023-08-04 13:01:50 +0300 |
commit | fbaa48b8ebf22d97bb224444603523ed03b98854 (patch) | |
tree | 9eb6447e31c29697b11910e704883bcdc649314e /bpkg/package-query.hxx | |
parent | 7a8652e41637085ddf090db27c193b02a99bc679 (diff) |
Add support for specifying package archive and directory as a dependency for pkg-build
Also make sure that a package specified as an archive or directory always
replaces selected package.
Also add support for deorphaning and upgrading of such a package.
Diffstat (limited to 'bpkg/package-query.hxx')
-rw-r--r-- | bpkg/package-query.hxx | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/bpkg/package-query.hxx b/bpkg/package-query.hxx index be4e0be..de389c1 100644 --- a/bpkg/package-query.hxx +++ b/bpkg/package-query.hxx @@ -241,9 +241,18 @@ namespace bpkg shared_ptr<available_package>>> existing_packages; pair<shared_ptr<available_package>, lazy_shared_ptr<repository_fragment>> - find_existing (const package_name&, - const optional<version_constraint>&, - const lazy_shared_ptr<repository_fragment>&); + find_existing (database&, + const package_name&, + const optional<version_constraint>&); + + inline pair<shared_ptr<available_package>, + lazy_shared_ptr<repository_fragment>> + find_existing (const package_name& n, + const optional<version_constraint>& c, + const lazy_shared_ptr<repository_fragment>& rf) + { + return find_existing (rf.database (), n, c); + } // Configurations to use as the repository information sources. // |