diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2016-07-30 17:25:23 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2016-07-30 17:25:23 +0200 |
commit | b94b5381f68061121c22f2786ba1fa774f1ee6f6 (patch) | |
tree | 887717ac2e585c93141e71509f8779e852c4967d /bpkg/utility.cxx | |
parent | bee19e051ea565813588a532bfbae4ce0b2f4a71 (diff) |
Convert to use canonical directory separators
Diffstat (limited to 'bpkg/utility.cxx')
-rw-r--r-- | bpkg/utility.cxx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/bpkg/utility.cxx b/bpkg/utility.cxx index 57a299b..9bf1a5a 100644 --- a/bpkg/utility.cxx +++ b/bpkg/utility.cxx @@ -16,6 +16,9 @@ using namespace butl; namespace bpkg { + const dir_path bpkg_dir (".bpkg"); + const dir_path certs_dir (dir_path (bpkg_dir) /= "certs"); + bool yn_prompt (const char* prompt, char def) { @@ -229,7 +232,9 @@ namespace bpkg // if (v[0] != '!') { - storage.push_back (c.string () + "/:" + v); + // Use path representation to get canonical trailing slash. + // + storage.push_back (c.representation () + ':' + v); args.push_back (storage.back ().c_str ()); } else |