From f0c4ddcc96ae4eea5e158359bc21f51c3261bdd2 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Fri, 16 Apr 2021 22:04:22 +0300 Subject: Match package spec local repository locations in pkg-build case-insensitively on Windows --- bpkg/database.cxx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'bpkg/database.cxx') 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 using migration_entry = odb::data_migration_entry; static const migration_entry<8> migrate_v8 ([] (odb::database& db) { + for (shared_ptr r: pointer_result (db.query ())) + { + 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) -- cgit v1.1