From 1029dbcfb452542a58de34171ba07b5d408a2e5c Mon Sep 17 00:00:00 2001
From: Taseer Ahmed <taseer94@gmail.com>
Date: Tue, 24 Apr 2018 21:28:05 +0500
Subject: [PATCH] xci: install-lib: Install curl package

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 | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/xci/files/install-lib.sh b/xci/files/install-lib.sh
index 43e1213e..af86be41 100644
--- a/xci/files/install-lib.sh
+++ b/xci/files/install-lib.sh
@@ -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 )
-- 
2.16.6