a81cf9e231
Use openSUSE 15.1 as default, which is the latest released stable openSUSE release. Remove leftovers for unmaintained openSUSE 42.2 images. Depends-On: https://review.opendev.org/#/c/660126/ Change-Id: I0b204b7b3d7ae74b6749320b3bfe1ca89d154ebb
36 lines
991 B
Plaintext
36 lines
991 B
Plaintext
# Pick which distros we need to force python2
|
|
if [ -z "${DIB_PYTHON_VERSION:-}" ]; then
|
|
if [ "$DISTRO_NAME" == "ubuntu" ]; then
|
|
if [ "$DIB_RELEASE" == "trusty" ]; then
|
|
DIB_PYTHON_VERSION=2
|
|
fi
|
|
elif [ "$DISTRO_NAME" == "debian" ]; then
|
|
DIB_PYTHON_VERSION=2
|
|
elif [ "$DISTRO_NAME" == "fedora" ]; then
|
|
if [ "$DIB_RELEASE" -le 22 ]; then
|
|
DIB_PYTHON_VERSION=2
|
|
fi
|
|
elif [ "$DISTRO_NAME" == "centos" ]; then
|
|
DIB_PYTHON_VERSION=2
|
|
elif [ "$DISTRO_NAME" == "centos7" ]; then
|
|
DIB_PYTHON_VERSION=2
|
|
elif [ "$DISTRO_NAME" == "rhel7" ]; then
|
|
DIB_PYTHON_VERSION=2
|
|
elif [ "$DISTRO_NAME" == "opensuse" ]; then
|
|
if [ "${DIB_RELEASE:0:2}" == "42" ]; then
|
|
DIB_PYTHON_VERSION=2
|
|
fi
|
|
fi
|
|
fi
|
|
|
|
if [ -z "${DIB_PYTHON_VERSION:-}" ]; then
|
|
DIB_PYTHON_VERSION=3
|
|
fi
|
|
|
|
export DIB_PYTHON_VERSION
|
|
export DIB_PYTHON=python${DIB_PYTHON_VERSION}
|
|
|
|
# Local variables:
|
|
# mode: sh
|
|
# End:
|