From 0cd90081c03e5c07113997f0321591443f0410c0 Mon Sep 17 00:00:00 2001 From: Michal Berger Date: Wed, 23 Sep 2020 20:25:28 +0200 Subject: [PATCH] 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 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/4359 Tested-by: SPDK CI Jenkins Reviewed-by: Shuhei Matsumoto Reviewed-by: Tomasz Zawadzki --- scripts/pkgdep/rhel.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/pkgdep/rhel.sh b/scripts/pkgdep/rhel.sh index 4f44637ff..c0e875a91 100755 --- a/scripts/pkgdep/rhel.sh +++ b/scripts/pkgdep/rhel.sh @@ -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