Work around incorrect lintian version on debian 10 (#48620)

* Work around incorrect lintian version on debian 10

Relates to #48573 and intended as a work around to stop the CI failures
until we fix the image.

* Need to pass --allow-downgrades
This commit is contained in:
Alpar Torok 2019-10-29 14:05:34 +02:00
parent c6abe58f63
commit 08bf89b92b
1 changed files with 5 additions and 0 deletions

View File

@ -33,6 +33,11 @@ if [ -f "/etc/os-release" ] ; then
if [[ "$ID" == "debian" || "$ID_LIKE" == "debian" ]] ; then
# FIXME: The base image should not have rpm installed
sudo rm -Rf /usr/bin/rpm
# Work around incorrect lintian version
# https://github.com/elastic/elasticsearch/issues/48573
if [ $VERSION_ID == 10 ] ; then
sudo apt-get install -y --allow-downgrades lintian=2.15.0
fi
fi
else
cat /etc/issue || true