aboutsummaryrefslogtreecommitdiff
path: root/bpkg/pkg-disfigure.cxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2016-06-04 14:26:47 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2016-06-18 15:10:59 +0300
commit272dd3d81b1e7f2f0ce98dc19299a84f027e4b59 (patch)
tree8a1d9f6ade57b6d2a91ec1e7d270575457f86c83 /bpkg/pkg-disfigure.cxx
parentb501355018d904bcc2ffb467b59377ccd8e592e8 (diff)
Quote build2 operations arguments
Diffstat (limited to 'bpkg/pkg-disfigure.cxx')
-rw-r--r--bpkg/pkg-disfigure.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/bpkg/pkg-disfigure.cxx b/bpkg/pkg-disfigure.cxx
index 282bc82..cb3e657 100644
--- a/bpkg/pkg-disfigure.cxx
+++ b/bpkg/pkg-disfigure.cxx
@@ -74,8 +74,8 @@ namespace bpkg
if (p->state == package_state::configured)
{
- bspec = "clean(" + out_root.string () + "/) "
- "disfigure(" + out_root.string () + "/)";
+ bspec = "clean('" + out_root.string () + "/') "
+ "disfigure('" + out_root.string () + "/')";
}
else
{
@@ -84,11 +84,11 @@ namespace bpkg
// partially configured one.
//
if (src_root == out_root)
- bspec = "disfigure(" + out_root.string () + "/)";
+ bspec = "disfigure('" + out_root.string () + "/')";
else
- bspec = "disfigure(" +
- src_root.string () + "/@" +
- out_root.string () + "/)";
+ bspec = "disfigure('" +
+ src_root.string () + "/'@'" +
+ out_root.string () + "/')";
}
l4 ([&]{trace << "buildspec: " << bspec;});