summaryrefslogtreecommitdiff
path: root/morphlib/builder.py
diff options
context:
space:
mode:
Diffstat (limited to 'morphlib/builder.py')
-rw-r--r--morphlib/builder.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/morphlib/builder.py b/morphlib/builder.py
index a9fe8957..443741b0 100644
--- a/morphlib/builder.py
+++ b/morphlib/builder.py
@@ -25,6 +25,7 @@ import traceback
import subprocess
import tempfile
import warnings
+import pipes
import cliapp
@@ -697,7 +698,7 @@ class SystemBuilder(BuilderBase): # pragma: no cover
with open(chroot_script, 'w') as f:
cmdline = morphlib.util.containerised_cmdline(
shell_command, **container_config)
- f.write(' '.join(map(cliapp.shell_quote, cmdline)))
+ f.write(' '.join(map(pipes.quote, cmdline)))
with open(logfilepath, 'r') as log:
shutil.copyfileobj(log, self.app.output)