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:36 +1100
commita7691f0a3853e112f635784f15daff888e1ca4ee (patch)
tree1bdae0dcf53fd89527bb73e22c448dda5ddeab5e
parentFix sb-bootrap to run on Windows using MSYS2. (diff)
downloadrtems-source-builder-a7691f0a3853e112f635784f15daff888e1ca4ee.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):