summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2016-02-25 14:29:00 +1100
committerChris Johns <chrisj@rtems.org>2016-02-25 14:30:31 +1100
commit056e601477623b97ad40dfe8a3c182527bed266c (patch)
tree6acef27dd14b1c1fd5555402f4d19564e50c65d3
parentFix sb-bootrap to run on Windows using MSYS2. (diff)
downloadrtems-source-builder-056e601477623b97ad40dfe8a3c182527bed266c.tar.bz2
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.
-rw-r--r--source-builder/sb/setbuilder.py4
1 files 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):