xci: install-lib: Install curl package 07/56407/1
authorTaseer Ahmed <taseer94@gmail.com>
Tue, 24 Apr 2018 16:28:05 +0000 (21:28 +0500)
committerTaseer Ahmed <taseer94@gmail.com>
Tue, 24 Apr 2018 16:28:05 +0000 (21:28 +0500)
XCI_ANSIBLE_PIP_VERSION is determined dynamically using curl.
This package is not present on every system, hence fails
since it can not install a null version of Ansible

Change-Id: I96a2237e6bdb28e09f0eebee4aae91742973d770
Signed-off-by: Taseer Ahmed <taseer94@gmail.com>
xci/files/install-lib.sh

index 43e1213..af86be4 100644 (file)
@@ -34,6 +34,7 @@ function install_ansible() {
         python
         venv
         wget
+        curl
     )
 
     source /etc/os-release || source /usr/lib/os-release
@@ -54,6 +55,7 @@ function install_ansible() {
             [python-devel]=python-devel
             [venv]=python-virtualenv
             [wget]=wget
+            [curl]=curl
         )
         EXTRA_PKG_DEPS=( python-xml )
         sudo zypper -n ref
@@ -81,6 +83,7 @@ function install_ansible() {
             [python-devel]=libpython-dev
             [venv]=python-virtualenv
             [wget]=wget
+            [curl]=curl
         )
         EXTRA_PKG_DEPS=( apt-utils )
         sudo apt-get update
@@ -103,6 +106,7 @@ function install_ansible() {
             [python-devel]=python-devel
             [venv]=python-virtualenv
             [wget]=wget
+            [curl]=curl
         )
         sudo $PKG_MANAGER updateinfo
         EXTRA_PKG_DEPS=( deltarpm )