aboutsummaryrefslogtreecommitdiff
path: root/bpkg
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2019-08-22 22:04:34 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2019-08-22 22:04:51 +0300
commit7b5a0b55569331560f9cb6439ee818c3ce5d8428 (patch)
tree716701cfb044388fe6c33d1746a0292189c56147 /bpkg
parent5384724d937196e1e3f5c15fe443c0bff07896e6 (diff)
Quote directory paths in buildspecs
Also fix some tests to properly work if the project path contain spaces.
Diffstat (limited to 'bpkg')
-rw-r--r--bpkg/pkg-checkout.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/bpkg/pkg-checkout.cxx b/bpkg/pkg-checkout.cxx
index 764373e..f46da60 100644
--- a/bpkg/pkg-checkout.cxx
+++ b/bpkg/pkg-checkout.cxx
@@ -231,11 +231,11 @@ namespace bpkg
// Form the buildspec.
//
- string bspec ("dist(");
+ string bspec ("dist('");
bspec += pd.representation ();
- bspec += '@';
+ bspec += "'@'";
bspec += od.representation ();
- bspec += ')';
+ bspec += "')";
// Remove the resulting package distribution directory on failure.
//
@@ -262,7 +262,7 @@ namespace bpkg
run_b (o,
verb_b::progress,
- strings ({"config.dist.root=" + c.representation ()}),
+ strings ({"config.dist.root='" + c.representation () + "'"}),
bspec);
// Revert the fix-ups.