This is an automated email from the ASF dual-hosted git repository.

tvb pushed a commit to branch aevri/win32
in repository https://gitbox.apache.org/repos/asf/buildstream.git

commit 482d0256d9e34ae1d3faa88b98f6521ea214ea06
Author: Angelos Evripiotis <[email protected]>
AuthorDate: Wed Apr 17 16:32:50 2019 +0100

    WIP: win32: use cmd.exe instead of sh
---
 src/buildstream/buildelement.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/buildstream/buildelement.py b/src/buildstream/buildelement.py
index 158f5fc..4bb6793 100644
--- a/src/buildstream/buildelement.py
+++ b/src/buildstream/buildelement.py
@@ -294,6 +294,6 @@ class BuildElement(Element):
         # Note the -e switch to 'sh' means to exit with an error
         # if any untested command fails.
         #
-        sandbox.run(['sh', '-c', '-e', cmd + '\n'],
+        sandbox.run(['cmd.exe', '/c', cmd],
                     SandboxFlags.ROOT_READ_ONLY,
                     label=cmd)

Reply via email to