aboutsummaryrefslogtreecommitdiff
path: root/bpkg/cfg-create.cxx
diff options
context:
space:
mode:
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 29de01c..f125e43 100644
--- a/bpkg/cfg-create.cxx
+++ b/bpkg/cfg-create.cxx
@@ -11,6 +11,7 @@
#include <bpkg/cfg-link.hxx>
using namespace std;
+using namespace butl;
namespace bpkg
{
@@ -121,7 +122,7 @@ namespace bpkg
{
// Assemble the build2 create meta-operation parameters.
//
- string params ("'" + c.representation () + "'");
+ string params ('\'' + c.representation () + '\'');
if (!mods.empty ())
{
params += ',';
@@ -134,7 +135,7 @@ namespace bpkg
// Run quiet. Use path representation to get canonical trailing slash.
//
- run_b (o, verb_b::quiet, vars, "create(" + params + ")");
+ run_b (o, verb_b::quiet, vars, "create(" + params + ')');
}
// Create .bpkg/ and its subdirectories.
@@ -249,7 +250,7 @@ namespace bpkg
string a (args.next ());
if (a.find ('=') != string::npos)
- vars.push_back (move (a));
+ vars.push_back (move (trim (a)));
else if (!a.empty ())
mods.push_back (move (a));
else