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/package.hxx | |
parent | e4c22fd4b9ba9782acd0c0a10866cbeaf8be694d (diff) |
Match package spec local repository locations in pkg-build case-insensitively on Windows
Diffstat (limited to 'bpkg/package.hxx')
-rw-r--r-- | bpkg/package.hxx | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/bpkg/package.hxx b/bpkg/package.hxx index e7379b3..ad45fa8 100644 --- a/bpkg/package.hxx +++ b/bpkg/package.hxx @@ -27,7 +27,7 @@ // #define DB_SCHEMA_VERSION_BASE 6 -#pragma db model version(DB_SCHEMA_VERSION_BASE, 7, closed) +#pragma db model version(DB_SCHEMA_VERSION_BASE, 8, closed) namespace bpkg { @@ -390,11 +390,19 @@ namespace bpkg optional<string> certificate; // PEM representation. fragments_type fragments; + // While we could potentially calculate this flag on the fly, that would + // complicate the database queries significantly. + // + optional<bool> local; // nullopt for root repository. + public: explicit repository (repository_location l): location (move (l)) { name = location.canonical_name (); + + if (!name.empty ()) // Non-root? + local = location.local (); } // Database mapping. |