From 6d8254368211c66e8f2b9d125a9ae59b0de18405 Mon Sep 17 00:00:00 2001 From: Paul Belanger Date: Fri, 16 Dec 2016 11:27:10 -0500 Subject: [PATCH] Add ubuntu-precise support to dib-python Change-Id: I2796da88d839ed49ec28ae7b139ede04af51f068 Signed-off-by: Paul Belanger --- elements/dib-python/environment.d/50-dib-python-version | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/elements/dib-python/environment.d/50-dib-python-version b/elements/dib-python/environment.d/50-dib-python-version index 14fed853..27331dbd 100644 --- a/elements/dib-python/environment.d/50-dib-python-version +++ b/elements/dib-python/environment.d/50-dib-python-version @@ -1,7 +1,9 @@ # Pick which distros we need to force python2 if [ -z "${DIB_PYTHON_VERSION:-}" ]; then if [ "$DISTRO_NAME" == "ubuntu" ]; then - if [ "$DIB_RELEASE" == "trusty" ]; then + if [ "$DIB_RELEASE" == "precise" ]; then + DIB_PYTHON_VERSION=2 + elif [ "$DIB_RELEASE" == "trusty" ]; then DIB_PYTHON_VERSION=2 fi elif [ "$DISTRO_NAME" == "debian" ]; then