From fbaa48b8ebf22d97bb224444603523ed03b98854 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Mon, 31 Jul 2023 22:01:32 +0300 Subject: 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. --- bpkg/package-query.hxx | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'bpkg/package-query.hxx') 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>> existing_packages; pair, lazy_shared_ptr> - find_existing (const package_name&, - const optional&, - const lazy_shared_ptr&); + find_existing (database&, + const package_name&, + const optional&); + + inline pair, + lazy_shared_ptr> + find_existing (const package_name& n, + const optional& c, + const lazy_shared_ptr& rf) + { + return find_existing (rf.database (), n, c); + } // Configurations to use as the repository information sources. // -- cgit v1.1