diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2018-03-07 22:36:57 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2018-03-08 13:35:44 +0300 |
commit | ccd8c8dadfcfd9181772b3061e7b075d88942505 (patch) | |
tree | 2e2d292deafa3e3282128c0a92ea1b9894809e6f /bpkg/rep-remove.hxx | |
parent | d234bf4a341edb470a2c81f2533f7eb5c67c948c (diff) |
Change database parameter type to transaction for some rep_*() functions
Diffstat (limited to 'bpkg/rep-remove.hxx')
-rw-r--r-- | bpkg/rep-remove.hxx | 11 |
1 files changed, 6 insertions, 5 deletions
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 <bpkg/types.hxx> -#include <bpkg/forward.hxx> // database, repository +#include <bpkg/forward.hxx> // database, transaction, repository #include <bpkg/utility.hxx> #include <bpkg/rep-remove-options.hxx> @@ -20,11 +20,12 @@ namespace bpkg // required by any user-added repository). // void - rep_remove (const dir_path& conf, database&, const shared_ptr<repository>&); + rep_remove (const dir_path& conf, + transaction&, + const shared_ptr<repository>&); // 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 |