Browse Source

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
Alpar Torok 6 years ago
parent
commit
7241a748e6
1 changed files with 5 additions and 0 deletions
  1. 5 0
      .ci/os.sh

+ 5 - 0
.ci/os.sh

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