From f37e85d547faed0e96bd89df8e4d45ff8bdfd788 Mon Sep 17 00:00:00 2001 From: Markos Chandras Date: Thu, 31 May 2018 10:54:35 +0100 Subject: [PATCH] elements: pip-and-virtualenv: Handle openSUSE Leap 15 We need to handle openSUSE Leap 15 when installing pip and virtualenv packages. This fixes the following problem when the pip-and-virtualenv elements is used: 2018-05-31 09:42:12.014 | + [[ opensuse = opensuse ]] 2018-05-31 09:42:12.014 | /tmp/in_target.d/install.d/04-install-pip: line 57: packages: unbound variable Change-Id: Id7911b0a0836fa8dcc003e23fa515b78fba67126 --- .../install.d/pip-and-virtualenv-source-install/04-install-pip | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/diskimage_builder/elements/pip-and-virtualenv/install.d/pip-and-virtualenv-source-install/04-install-pip b/diskimage_builder/elements/pip-and-virtualenv/install.d/pip-and-virtualenv-source-install/04-install-pip index 746b78ef..fa73c8de 100755 --- a/diskimage_builder/elements/pip-and-virtualenv/install.d/pip-and-virtualenv-source-install/04-install-pip +++ b/diskimage_builder/elements/pip-and-virtualenv/install.d/pip-and-virtualenv-source-install/04-install-pip @@ -34,7 +34,7 @@ if [[ $DISTRO_NAME =~ (opensuse|fedora|centos|centos7|rhel7) ]]; then 42*) packages="python-virtualenv python-pip python-setuptools" ;; - tumbleweed) + tumbleweed|15*) # XXX: python3? packages="python2-virtualenv python2-pip python2-setuptools" ;;