Blame tests/p_yum-plugin-fastestmirror/0_install_yum-plugin-fastestmirror.sh

Karanbir Singh 6f670a
#!/bin/sh
Karanbir Singh 6f670a
Karanbir Singh 6f670a
t_Log "Running $0 - package should already be installed"
Karanbir Singh 6f670a
f49232
if [ "$centos_ver" -ge "8" ] ; then
f9996a
 t_Log "yum is replaced by dnf on el8. SKIP"
f9996a
 exit 0
f9996a
fi
Christoph Galuschka ecf0cb
rpm -qa | egrep -q 'yum-.*fastestmirror'
Karanbir Singh 6f670a
t_CheckExitStatus $?
Karanbir Singh 6f670a
Karanbir Singh 6f670a
t_Log "Running $0 - yum should have a hard Requires on yum-plugin-fastestmirror"
Christoph Galuschka ecf0cb
rpm -q --requires yum | egrep -q 'yum-.*fastestmirror'
Christoph Galuschka ecc319
t_CheckExitStatus $?