From ccd8c8dadfcfd9181772b3061e7b075d88942505 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Wed, 7 Mar 2018 22:36:57 +0300 Subject: Change database parameter type to transaction for some rep_*() functions --- bpkg/rep-remove.hxx | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'bpkg/rep-remove.hxx') diff --git a/bpkg/rep-remove.hxx b/bpkg/rep-remove.hxx index a7a6418..a8d4908 100644 --- a/bpkg/rep-remove.hxx +++ b/bpkg/rep-remove.hxx @@ -6,7 +6,7 @@ #define BPKG_REP_REMOVE_HXX #include -#include // database, repository +#include // database, transaction, repository #include #include @@ -20,11 +20,12 @@ namespace bpkg // required by any user-added repository). // void - rep_remove (const dir_path& conf, database&, const shared_ptr&); + rep_remove (const dir_path& conf, + transaction&, + const shared_ptr&); // Bring the configuration to the clean state as if repositories were added - // but never fetched. Leave selected packages intact. Note that it should be - // called out of the database transaction. + // but never fetched. Leave selected packages intact. // // Specifically: // @@ -45,7 +46,7 @@ namespace bpkg // contains. Remove packages that come from only this repository. // void - rep_remove_package_locations (database&, const string& repository_name); + rep_remove_package_locations (transaction&, const string& repository_name); } #endif // BPKG_REP_REMOVE_HXX -- cgit v1.1