diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2024-05-14 18:50:55 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2024-05-14 21:10:30 +0300 |
commit | 3271ee28840ff1ab905943649acbcea262cd9b2b (patch) | |
tree | acdd475f31b2fa711ca2d90aa04d947e65bf4f37 /bpkg/rep-mask.cxx | |
parent | dcb8512ff90f75da37227e4d9bcc7c058a3b9ca6 (diff) |
Fix rep-remove assertions
Diffstat (limited to 'bpkg/rep-mask.cxx')
-rw-r--r-- | bpkg/rep-mask.cxx | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/bpkg/rep-mask.cxx b/bpkg/rep-mask.cxx index d7f9c6a..e670005 100644 --- a/bpkg/rep-mask.cxx +++ b/bpkg/rep-mask.cxx @@ -6,6 +6,7 @@ #include <bpkg/package.hxx> #include <bpkg/package-odb.hxx> #include <bpkg/database.hxx> +#include <bpkg/rep-remove.hxx> // rep_remove_verify() #include <bpkg/diagnostics.hxx> #include <bpkg/package-query.hxx> // repo_configs #include <bpkg/manifest-utility.hxx> // repository_name() @@ -273,6 +274,16 @@ namespace bpkg for (database& db: repo_configs) { + // While at it, verify that the repository information has stayed + // consistent after the potential repository removals. + // + // Note that rep_remove() doesn't remove the available packages in the + // mask mode and thus we don't verify them. + // +#ifndef NDEBUG + rep_remove_verify (db, t, false /* verify_packages */); +#endif + // Add the repository location canonical name to the database-specific // unmasked repositories or repository fragments lists. Note that // repository location is used only for tracing. |