[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:20 UTC 2016


Module:    rtems-source-builder
Branch:    master
Commit:    056e601477623b97ad40dfe8a3c182527bed266c
Changeset: http://git.rtems.org/rtems-source-builder/commit/?id=056e601477623b97ad40dfe8a3c182527bed266c

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