From 7b5a0b55569331560f9cb6439ee818c3ce5d8428 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Thu, 22 Aug 2019 22:04:34 +0300 Subject: Quote directory paths in buildspecs Also fix some tests to properly work if the project path contain spaces. --- bpkg/pkg-checkout.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'bpkg') 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. -- cgit v1.1