aboutsummaryrefslogtreecommitdiff
path: root/bpkg/cfg-create.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-07-30 17:25:23 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-07-30 17:25:23 +0200
commitb94b5381f68061121c22f2786ba1fa774f1ee6f6 (patch)
tree887717ac2e585c93141e71509f8779e852c4967d /bpkg/cfg-create.cxx
parentbee19e051ea565813588a532bfbae4ce0b2f4a71 (diff)
Convert to use canonical directory separators
Diffstat (limited to 'bpkg/cfg-create.cxx')
-rw-r--r--bpkg/cfg-create.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/bpkg/cfg-create.cxx b/bpkg/cfg-create.cxx
index b5b1f41..94a7764 100644
--- a/bpkg/cfg-create.cxx
+++ b/bpkg/cfg-create.cxx
@@ -136,12 +136,13 @@ namespace bpkg
// Configure.
//
- // Run quiet.
- run_b (o, c, "configure('" + c.string () + "/')", true, vars);
+ // Run quiet. Use path representation to get canonical trailing slash.
+ //
+ run_b (o, c, "configure('" + c.representation () + "')", true, vars);
// Create .bpkg/.
//
- mk (c / dir_path (".bpkg"));
+ mk (c / bpkg_dir);
// Create the database.
//