[rtems-source-builder commit] Wrap the tar command in double quotes for Windows cmd.exe.

Chris Johns chrisj at rtems.org
Thu Feb 25 03:33:07 UTC 2016


Module:    rtems-source-builder
Branch:    4.11
Commit:    a7691f0a3853e112f635784f15daff888e1ca4ee
Changeset: http://git.rtems.org/rtems-source-builder/commit/?id=a7691f0a3853e112f635784f15daff888e1ca4ee

Author:    Chris Johns <chrisj at rtems.org>
Date:      Thu Feb 25 14:29:00 2016 +1100

Wrap the tar command in double quotes for Windows cmd.exe.

Windows cmd.exe does not support a single quote for options. Change to
a double quote.

Closes #2615.

---

 source-builder/sb/setbuilder.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/source-builder/sb/setbuilder.py b/source-builder/sb/setbuilder.py
index 01062ab..5a779bb 100644
--- a/source-builder/sb/setbuilder.py
+++ b/source-builder/sb/setbuilder.py
@@ -198,8 +198,8 @@ class buildset:
             log.notice('tarball: %s' % (os.path.relpath(path.host(tar))))
             if not self.opts.dry_run():
                 tmproot = _build.config.expand('%{_tmproot}')
-                cmd = _build.config.expand("'cd " + tmproot + \
-                                               " && %{__tar} -cf - . | %{__bzip2} > " + tar + "'")
+                cmd = _build.config.expand('"cd ' + tmproot + \
+                                               ' && %{__tar} -cf - . | %{__bzip2} > ' + tar + '"')
                 _build.run(cmd, shell_opts = '-c', cwd = tmproot)
 
     def parse(self, bset):



More information about the vc mailing list