diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2019-08-22 22:04:34 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2019-08-22 22:04:51 +0300 |
commit | 7b5a0b55569331560f9cb6439ee818c3ce5d8428 (patch) | |
tree | 716701cfb044388fe6c33d1746a0292189c56147 /bpkg/pkg-checkout.cxx | |
parent | 5384724d937196e1e3f5c15fe443c0bff07896e6 (diff) |
Quote directory paths in buildspecs
Also fix some tests to properly work if the project path contain spaces.
Diffstat (limited to 'bpkg/pkg-checkout.cxx')
-rw-r--r-- | bpkg/pkg-checkout.cxx | 8 |
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. |