From 5e40d45fedc7181810d837a77a8a1ca97b5f8665 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Tue, 24 Nov 2020 13:58:40 +0300 Subject: Adapt to converting local repo canonical name path part to lower case on Windows --- bdep/utility.cxx | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'bdep/utility.cxx') 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 + } } -- cgit v1.1