From ebdae8441cabe44bde9042649f692baed8d80331 Mon Sep 17 00:00:00 2001 From: Markos Chandras Date: Thu, 7 Dec 2017 09:28:07 +0000 Subject: [PATCH] scripts: install-deps.sh: Ensure distros have package metadata available Before trying to install any packages for the tests, we should ensure that the package metadata is updated otherwise some packges may be reported as missing. Change-Id: Idc2033eee917b3024e392712aec9feb7611c097a --- scripts/install-deps.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/install-deps.sh b/scripts/install-deps.sh index ed6d7048f..b42e97df4 100644 --- a/scripts/install-deps.sh +++ b/scripts/install-deps.sh @@ -38,6 +38,7 @@ case ${ID,,} in [wget]=wget ) EXTRA_PKG_DEPS=( python-xml ) + sudo zypper -n ref # NOTE (cinerama): we can't install python without removing this package # if it exists if $(${CHECK_CMD} patterns-openSUSE-minimal_base-conflicts &> /dev/null); then @@ -63,6 +64,7 @@ case ${ID,,} in [wget]=wget ) EXTRA_PKG_DEPS=() + sudo apt-get update ;; rhel|fedora|centos) @@ -83,6 +85,7 @@ case ${ID,,} in [wget]=wget ) EXTRA_PKG_DEPS=() + sudo yum updateinfo ;; *) echo "ERROR: Supported package manager not found. Supported: apt, dnf, yum, zypper"; exit 1;;