aboutsummaryrefslogtreecommitdiff
path: root/bpkg
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2016-05-21 17:16:13 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2016-05-31 19:04:33 +0300
commit9a1351808c7443a65f876d2b7808ebdea7d9c814 (patch)
tree80fedb517a43c64762bb71fa690c90a40824be33 /bpkg
parent057a5d5d435d53166d1b8751748a9ba0a317bee3 (diff)
Port to MinGW
Diffstat (limited to 'bpkg')
-rw-r--r--bpkg/manifest.cxx10
1 files changed, 5 insertions, 5 deletions
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 <prefix>/<path> 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_);
}