Fail the build when Python with Mercurial is not available

This commit is contained in:
Paul Wise
2022-02-22 12:36:04 +08:00
committed by Mark Nauwelaerts
parent a8cd6a92b3
commit 4d38bff053

View File

@@ -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 \