Merge "scripts: install-deps.sh: Ensure distros have package metadata available"

This commit is contained in:
Zuul 2017-12-14 15:06:19 +00:00 committed by Gerrit Code Review
commit b28361b1cd
1 changed files with 3 additions and 0 deletions

View File

@ -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;;