diff options
author | Tiago Gomes <tiago.gomes@codethink.co.uk> | 2015-09-01 15:08:49 +0000 |
---|---|---|
committer | Tiago Gomes <tiago.gomes@codethink.co.uk> | 2015-09-01 15:19:06 +0000 |
commit | 29d6b3d36e40317ab72bd543b7d644161906b723 (patch) | |
tree | 40c52b9a57915cc905de39842cb8bcd72a274230 /morphlib/stagingarea.py | |
parent | ae0e75eb2f72d35dbaa0a7ed38c485f670695458 (diff) | |
download | morph-29d6b3d36e40317ab72bd543b7d644161906b723.tar.gz |
Replace cliapp.shell_quote() with pipes.quote()
Change-Id: I4b8e8eefe0cd321458bb3fae72f6d0552680f84f
Diffstat (limited to 'morphlib/stagingarea.py')
-rw-r--r-- | morphlib/stagingarea.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/morphlib/stagingarea.py b/morphlib/stagingarea.py index 2e987e66..9ab87950 100644 --- a/morphlib/stagingarea.py +++ b/morphlib/stagingarea.py @@ -21,6 +21,7 @@ import cliapp from urlparse import urlparse import tempfile import fcntl +import pipes import morphlib @@ -292,7 +293,7 @@ class StagingArea(object): cmdline = morphlib.util.containerised_cmdline( shell_command, **container_config) with open(chroot_script, 'w') as f: - f.write(' '.join(map(cliapp.shell_quote, cmdline))) + f.write(' '.join(map(pipes.quote, cmdline))) return exit |