Better error message when failing to run install script. Closes #361.

pull/373/head
Jussi Pakkanen 9 years ago
parent 9573ec60ad
commit b91134b806
  1. 8
      mesonbuild/scripts/meson_install.py
  2. 2
      test cases/common/60 install script/myinstall.sh

@ -125,7 +125,13 @@ def run_install_script(d):
final_command = commands + [script] + i.cmd_arr[1:]
else:
final_command = i.cmd_arr
subprocess.check_call(final_command, env=child_env)
try:
rc = subprocess.call(final_command, env=child_env)
if rc != 0:
sys.exit(rc)
except Exception:
print('Failed to run install script:', i.cmd_arr[0])
sys.exit(1)
def is_elf_platform():
platname = platform.system().lower()

@ -1,5 +1,7 @@
#!/bin/sh
set -eu
echo Starting custom installation step
# These commands fail on Windows, but we don't really care.

Loading…
Cancel
Save