##// END OF EJS Templates
hg-docker: fix Python 3.4 compatibility (for CentOS 7)...
Mathias De Mare -
r41269:92b3811f default
parent child Browse files
Show More
@@ -72,7 +72,12 b' def build_docker_image(dockerfile: pathl'
72 72 ]
73 73
74 74 print('executing: %r' % args)
75 subprocess.run(args, input=dockerfile, check=True)
75 p = subprocess.Popen(args, stdin=subprocess.PIPE)
76 p.communicate(input=dockerfile)
77 if p.returncode:
78 raise subprocess.CalledProcessException(
79 p.returncode, 'failed to build docker image: %s %s' \
80 % (p.stdout, p.stderr))
76 81
77 82 def command_build(args):
78 83 build_args = []
General Comments 0
You need to be logged in to leave comments. Login now