From 4d38bff053768a7edb68cb6b6ed6a45d3c20cd4a Mon Sep 17 00:00:00 2001 From: Paul Wise Date: Tue, 22 Feb 2022 12:36:04 +0800 Subject: [PATCH] Fail the build when Python with Mercurial is not available --- Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Makefile b/Makefile index dea17d3..c76568e 100644 --- a/Makefile +++ b/Makefile @@ -14,6 +14,9 @@ build: PYTHON=python2 ; \ elif python -c 'import mercurial' 2> /dev/null ; then \ PYTHON=python ; \ + else ; \ + echo 'Python with Mercurial not available' >&2 ; \ + exit 1 ; \ fi ; \ mkdir -p bin ; \ for s in git-remote-hg git-hg-helper ; do \