aboutsummaryrefslogtreecommitdiff
path: root/bpkg/rep-remove.hxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2018-03-07 22:36:57 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2018-03-08 13:35:44 +0300
commitccd8c8dadfcfd9181772b3061e7b075d88942505 (patch)
tree2e2d292deafa3e3282128c0a92ea1b9894809e6f /bpkg/rep-remove.hxx
parentd234bf4a341edb470a2c81f2533f7eb5c67c948c (diff)
Change database parameter type to transaction for some rep_*() functions
Diffstat (limited to 'bpkg/rep-remove.hxx')
-rw-r--r--bpkg/rep-remove.hxx11
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