From 82aab2f5dd19d48cd178f65e810d6abc1e39fc21 Mon Sep 17 00:00:00 2001 From: Matthieu Gautier Date: Tue, 7 Feb 2017 12:08:03 +0100 Subject: [PATCH] Properly fail if ninja or meson is not installed. --- kiwix-build.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/kiwix-build.py b/kiwix-build.py index a9d0dca..488f761 100755 --- a/kiwix-build.py +++ b/kiwix-build.py @@ -239,7 +239,11 @@ class BuildEnv: self.detect_platform() self.setup_build_target(options.build_target) self.ninja_command = self._detect_ninja() + if not self.ninja_command: + sys.exit("ERROR: ninja command not found") self.meson_command = self._detect_meson() + if not self.meson_command: + sys.exit("ERROR: meson command not fount") self.options = options self.libprefix = options.libprefix or self._detect_libdir() self.targetsDict = targetsDict