install scripts: Actually check if it was found

Closes https://github.com/mesonbuild/meson/issues/1600
pull/1603/merge
Nirbheek Chauhan 8 years ago committed by Jussi Pakkanen
parent 7d5e4012fe
commit 371e3d3e87
  1. 2
      mesonbuild/interpreter.py

@ -1109,7 +1109,7 @@ class MesonMain(InterpreterObject):
found = self._found_source_scripts[key]
else:
found = dependencies.ExternalProgram(name, search_dir=search_dir)
if found:
if found.found():
self._found_source_scripts[key] = found
else:
raise InterpreterException('Script {!r} not found'.format(name))

Loading…
Cancel
Save