Skip to content

Commit 079e285

Browse files
Default case srpm install build deps
builddep command is identical between fedora/centos/rhel
1 parent 67d4156 commit 079e285

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

configuration/steps/commands/scripts/srpm_install_build_deps.sh

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,13 @@ srpm_file="${srpms[0]}"
2828
# Run appropriate build dependency install command
2929
source /etc/os-release
3030
case "$ID" in
31-
fedora|centos)
32-
echo "Installing build dependencies using dnf on $ID..."
33-
sudo dnf --setopt=install_weak_deps=False builddep -y "$srpm_file"
34-
;;
3531
rhel)
3632
major="${VERSION_ID%%.*}"
3733
arch="$(uname -m)"
3834
echo "Enabling CodeReady Builder repo for RHEL $major ($arch)..."
3935
sudo dnf config-manager --enable "codeready-builder-for-rhel-${major}-${arch}-rpms"
36+
;&
37+
fedora|centos)
4038
echo "Installing build dependencies using dnf on RHEL..."
4139
sudo dnf --setopt=install_weak_deps=False builddep -y "$srpm_file"
4240
;;

0 commit comments

Comments
 (0)