Bug 1419269 - Support installing mercurial on Debian versions != 9. r?gps
--- a/taskcluster/docker/recipes/install-mercurial.sh
+++ b/taskcluster/docker/recipes/install-mercurial.sh
@@ -25,21 +25,24 @@ if [ -f /etc/lsb-release ]; then
exit 1
fi
CERT_PATH=/etc/ssl/certs/ca-certificates.crt
elif [ -f /etc/os-release ]; then
. /etc/os-release
- if [ "${ID}" = "debian" -a "${VERSION_ID}" = "9" ]; then
+ if [ "${ID}" = "debian" ]; then
if [ -f /usr/bin/pip2 ]; then
PIP_PATH=/usr/bin/pip2
+ elif [ -f /usr/bin/pip ]; then
+ # Versions of debian that don't have pip2 have pip pointing to the python2 version.
+ PIP_PATH=/usr/bin/pip
else
- echo "We currently require Python 2.7 and /usr/bin/pip2 to run Mercurial"
+ echo "We currently require Python 2.7 and pip to run Mercurial"
exit 1
fi
else
echo "Unsupported debian-like system with ID '${ID}' and VERSION_ID '${VERSION_ID}'"
exit 1
fi
CERT_PATH=/etc/ssl/certs/ca-certificates.crt