Commit 0cd90081 authored by Michal Berger's avatar Michal Berger Committed by Tomasz Zawadzki
Browse files

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: default avatarMichal Berger <michalx.berger@intel.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/4359


Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: default avatarShuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-by: default avatarTomasz Zawadzki <tomasz.zawadzki@intel.com>
parent 0f06b929
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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