Force scala 2.11.6 for Ubuntu Trusty
The newer deb from scala-project.org (2.12.0, and probably the future ones) depends on openjdk-8 which is only available on xenial. Closes-Bug: #1644799 Change-Id: I3300bdc37f8da5b803ed2f311e39fe305b15d269
This commit is contained in:
parent
9ac38b939a
commit
bdd0c5c61d
|
@ -17,11 +17,16 @@ if [ "$RETURN_CODE" != "200" ]; then
|
|||
echo "http://www.scala-lang.org is unreachable" && exit 1
|
||||
fi
|
||||
|
||||
VERSION="$(curl -s --fail http://www.scala-lang.org|grep 'scala-version'|grep -Eo '([0-9]\.?)+')"
|
||||
|
||||
if [ $? != 0 -o -z "${VERSION}" ]; then
|
||||
echo "Installing default version $DEF_VERSION"
|
||||
if [ "trusty" == "${DIB_RELEASE}" ]; then
|
||||
# scale >= 2.12 for ubuntu depends on openjdk-8, not available on trusty
|
||||
VERSION=${DEF_VERSION}
|
||||
else
|
||||
VERSION="$(curl -s --fail http://www.scala-lang.org|grep 'scala-version'|grep -Eo '([0-9]\.?)+')"
|
||||
|
||||
if [ $? != 0 -o -z "${VERSION}" ]; then
|
||||
echo "Installing default version $DEF_VERSION"
|
||||
VERSION=${DEF_VERSION}
|
||||
fi
|
||||
fi
|
||||
|
||||
PKG=scala-${VERSION}
|
||||
|
|
Loading…
Reference in New Issue