From 9a1351808c7443a65f876d2b7808ebdea7d9c814 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Sat, 21 May 2016 17:16:13 +0300 Subject: Port to MinGW --- bpkg/manifest.cxx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'bpkg') diff --git a/bpkg/manifest.cxx b/bpkg/manifest.cxx index ff1c88f..ac6fafb 100644 --- a/bpkg/manifest.cxx +++ b/bpkg/manifest.cxx @@ -1704,10 +1704,10 @@ namespace bpkg // Canonical name / part. // - string cp ( - strip_path ( - path_, remote () ? strip_mode::component : strip_mode::path). - posix_string ()); + dir_path sp (strip_path ( + path_, remote () ? strip_mode::component : strip_mode::path)); + + string cp (sp.relative () ? sp.posix_string () : sp.string ()); // Note: allow empty paths (e.g., http://stable.cppget.org/1/). // @@ -1729,7 +1729,7 @@ namespace bpkg return std::string (); // Also function name. if (local ()) - return path_.string (); + return relative () ? path_.posix_string () : path_.string (); return to_string (proto_, host_, port_, path_); } -- cgit v1.1