From 8b7ee409621b50c1f741188f21f18f98d47e63af Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Thu, 22 Aug 2019 22:08:16 +0300 Subject: Quote directory paths in buildspecs --- bdep/publish.cxx | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'bdep/publish.cxx') diff --git a/bdep/publish.cxx b/bdep/publish.cxx index d3ea1c0..1fcc942 100644 --- a/bdep/publish.cxx +++ b/bdep/publish.cxx @@ -249,14 +249,16 @@ namespace bdep // build2's version module by default does not allow distribution of // uncommitted projects. // - run_b (o, - "dist:", (dir_path (cfg) /= p.name.string ()).representation (), - "config.dist.root=" + dr.representation (), - "config.dist.archives=tar.gz", - "config.dist.checksums=sha256", - (uncommitted && *uncommitted - ? "config.dist.uncommitted=true" - : nullptr)); + run_b ( + o, + "dist:", + "'" + (dir_path (cfg) /= p.name.string ()).representation () + "'", + "config.dist.root='" + dr.representation () + "'", + "config.dist.archives=tar.gz", + "config.dist.checksums=sha256", + (uncommitted && *uncommitted + ? "config.dist.uncommitted=true" + : nullptr)); // This is the canonical package archive name that we expect dist to // produce. -- cgit v1.1