rh-bkr: fix the downgrade/install

No need to install the NetworkManager-wifi separately and update yum. Also,
downgrade succeeding doesn't mean we have all the wanted packages.
This commit is contained in:
Lubomir Rintel 2015-12-02 16:02:38 +01:00
parent 58d180acaa
commit b16c00155a

View file

@ -46,9 +46,8 @@ EOF
sed -e '/^\s*linux16\s*\/vmlinuz/ s/$/ $SELINUX_DISABLED/' -i /boot/grub2/grub.cfg || :
rm -f /etc/sysconfig/network-scripts/ifcfg-mlx*
DEFAULT_RPM_LIST="yum NetworkManager-wifi"
yum downgrade -y $$DEFAULT_RPM_LIST $RPM_LIST || yum install -y $$DEFAULT_RPM_LIST $RPM_LIST
yum downgrade -y $RPM_LIST
yum install -y $RPM_LIST
if [[ -n "$BUILD_ID" ]]; then