contrib/packaging/hg-docker
changeset 41759 aaad36b88298
parent 41234 4c0d4bbdc395
child 43659 99e231afc29c
equal deleted inserted replaced
41758:15d3facfa40a 41759:aaad36b88298
    74     print('executing: %r' % args)
    74     print('executing: %r' % args)
    75     p = subprocess.Popen(args, stdin=subprocess.PIPE)
    75     p = subprocess.Popen(args, stdin=subprocess.PIPE)
    76     p.communicate(input=dockerfile)
    76     p.communicate(input=dockerfile)
    77     if p.returncode:
    77     if p.returncode:
    78         raise subprocess.CalledProcessException(
    78         raise subprocess.CalledProcessException(
    79                 p.returncode, 'failed to build docker image: %s %s' \
    79                 p.returncode, 'failed to build docker image: %s %s'
    80                 % (p.stdout, p.stderr))
    80                 % (p.stdout, p.stderr))
    81 
    81 
    82 def command_build(args):
    82 def command_build(args):
    83     build_args = []
    83     build_args = []
    84     for arg in args.build_arg:
    84     for arg in args.build_arg: