pkgdep/rhel: Install yum-utils regardless of the $VERSION_ID

Also, put it on yum's cmdline separately since it doesn't really
belong to repos[] - it provides proper tooling not the actual repos.

Change-Id: I26c0c90b52f5b4fa914c116477092df525b4448f
Signed-off-by: Michal Berger <michalx.berger@intel.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/4359
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
This commit is contained in:
Michal Berger 2020-09-23 20:25:28 +02:00 committed by Tomasz Zawadzki
parent 0f06b929c9
commit 0cd90081c0

View File

@ -44,10 +44,10 @@ if [[ $ID == centos || $ID == rhel ]]; then
repos+=("https://www.elrepo.org/elrepo-release-8.el8.elrepo.noarch.rpm")
[[ $ID == centos ]] && repos+=("centos-release-ceph-nautilus.noarch")
# Add PowerTools needed for install CUnit-devel in Centos8
[[ $ID == centos ]] && repos+=("yum-utils") && enable+=("PowerTools")
[[ $ID == centos ]] && enable+=("PowerTools")
fi
if ((${#repos[@]} > 0)); then
yum install -y "${repos[@]}"
yum install -y "${repos[@]}" yum-utils
yum-config-manager --enable "${enable[@]}"
fi
# Potential dependencies can be needed from other RHEL repos, enable them