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.
This commit is contained in:
Chris Johns 2016-02-25 14:29:00 +11:00
parent 773ab3fe06
commit a7691f0a38

View File

@ -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):