diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2021-04-16 22:04:22 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2021-04-19 18:35:30 +0300 |
commit | f0c4ddcc96ae4eea5e158359bc21f51c3261bdd2 (patch) | |
tree | f2d12cb67395a4be2053379958b94d8ec6d333d9 /bpkg/database.cxx | |
parent | e4c22fd4b9ba9782acd0c0a10866cbeaf8be694d (diff) |
Match package spec local repository locations in pkg-build case-insensitively on Windows
Diffstat (limited to 'bpkg/database.cxx')
-rw-r--r-- | bpkg/database.cxx | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/bpkg/database.cxx b/bpkg/database.cxx index 7ba19f0..e355860 100644 --- a/bpkg/database.cxx +++ b/bpkg/database.cxx @@ -41,15 +41,21 @@ namespace bpkg // Register the data migration functions. // -#if 0 template <odb::schema_version v> using migration_entry = odb::data_migration_entry<v, DB_SCHEMA_VERSION_BASE>; static const migration_entry<8> migrate_v8 ([] (odb::database& db) { + for (shared_ptr<repository> r: pointer_result (db.query<repository> ())) + { + if (!r->name.empty ()) // Non-root repository? + { + r->local = r->location.local (); + db.update (r); + } + } }); -#endif database open (const dir_path& d, tracer& tr, bool create) |