diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2020-11-24 13:58:40 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2020-11-24 13:58:40 +0300 |
commit | 5e40d45fedc7181810d837a77a8a1ca97b5f8665 (patch) | |
tree | 33b59913a2ae3c0c0ce296a24c70c07b1641c788 /bdep/utility.cxx | |
parent | 6b625bea1beee70c326e1e32936e66ecc23ba99c (diff) |
Adapt to converting local repo canonical name path part to lower case on Windows
Diffstat (limited to 'bdep/utility.cxx')
-rw-r--r-- | bdep/utility.cxx | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/bdep/utility.cxx b/bdep/utility.cxx index 0e19691..703520e 100644 --- a/bdep/utility.cxx +++ b/bdep/utility.cxx @@ -310,4 +310,18 @@ namespace bdep dr << info << "consider using " << opt << " to override"; } } + + string + repository_name (const dir_path& d) + { + // We could probably obtain the canonical name by creating the repository + // URL and then the repository location, but let's keep it simple and + // produce it directly. + // + #ifdef _WIN32 + return "dir:" + lcase (d.string ()); + #else + return "dir:" + d.string (); + #endif + } } |