From 339ecee2b20e88f348b8e9fffc26cadc204f82a5 Mon Sep 17 00:00:00 2001 From: Markos Chandras Date: Wed, 14 Dec 2016 09:38:22 +0000 Subject: [PATCH] elements: dib-python: Add python2 as the default version for openSUSE Commit 6278371eaa13("Make dib-python use the default python for distro") added default python version for various distros but it missed openSUSE which leads to build failures since the openSUSE elements are pulling python2 packages. Add openSUSE to the list of python2 distributions until python3 support for the openSUSE elements is in place. Change-Id: I95f1fa849a22607c430387a2a915f9d19c9c209f --- elements/dib-python/environment.d/50-dib-python-version | 2 ++ 1 file changed, 2 insertions(+) diff --git a/elements/dib-python/environment.d/50-dib-python-version b/elements/dib-python/environment.d/50-dib-python-version index 82196b37..14fed853 100644 --- a/elements/dib-python/environment.d/50-dib-python-version +++ b/elements/dib-python/environment.d/50-dib-python-version @@ -14,6 +14,8 @@ if [ -z "${DIB_PYTHON_VERSION:-}" ]; then DIB_PYTHON_VERSION=2 elif [ "$DISTRO_NAME" == "centos7" ]; then DIB_PYTHON_VERSION=2 + elif [ "$DISTRO_NAME" == "opensuse" ]; then + DIB_PYTHON_VERSION=2 fi fi