From 79dee89adced2ca6bdf10225b36ff90743f1e60d Mon Sep 17 00:00:00 2001
From: Victor Morales <victor.morales@intel.com>
Date: Mon, 29 Jan 2018 10:49:25 -0800
Subject: Enable deltarpm

DeltaRPM allows to install only the difference between an old and new
version of an RPM, as consequence this reduces the network
consumption in CentOS distros.

Change-Id: I317fbac44ae5fb6d5293443e755e2b7ddd08c66e
Signed-off-by: Victor Morales <victor.morales@intel.com>
---
 xci/files/install-ansible.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'xci/files')

diff --git a/xci/files/install-ansible.sh b/xci/files/install-ansible.sh
index 979d9904..e370d14a 100644
--- a/xci/files/install-ansible.sh
+++ b/xci/files/install-ansible.sh
@@ -88,8 +88,8 @@ case ${ID,,} in
         [venv]=python-virtualenv
         [wget]=wget
     )
-    sudo yum updateinfo
-    EXTRA_PKG_DEPS=()
+    sudo $PKG_MANAGER updateinfo
+    EXTRA_PKG_DEPS=( deltarpm )
     ;;
 
     *) echo "ERROR: Supported package manager not found.  Supported: apt, dnf, yum, zypper"; exit 1;;
-- 
cgit 1.2.3-korg