From 056e601477623b97ad40dfe8a3c182527bed266c Mon Sep 17 00:00:00 2001 From: Chris Johns Date: Thu, 25 Feb 2016 14:29:00 +1100 Subject: 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): -- cgit v1.2.3