rh-bkr: fix run without RPM_LIST

This commit is contained in:
Lubomir Rintel 2015-12-03 11:41:48 +01:00
parent b16c00155a
commit 7b4e728e11

View file

@ -15,6 +15,7 @@
abrt-tui abrt-tui
abrt-addon-ccpp abrt-addon-ccpp
libreport-rhel-bugzilla libreport-rhel-bugzilla
NetworkManager-wifi
%end %end
%post --log=/dev/console --erroronfail %post --log=/dev/console --erroronfail
@ -46,8 +47,12 @@ EOF
sed -e '/^\s*linux16\s*\/vmlinuz/ s/$/ $SELINUX_DISABLED/' -i /boot/grub2/grub.cfg || : sed -e '/^\s*linux16\s*\/vmlinuz/ s/$/ $SELINUX_DISABLED/' -i /boot/grub2/grub.cfg || :
rm -f /etc/sysconfig/network-scripts/ifcfg-mlx* rm -f /etc/sysconfig/network-scripts/ifcfg-mlx*
yum downgrade -y $RPM_LIST if [[ -n "$RPM_LIST" ]]; then
yum install -y $RPM_LIST
yum downgrade -y $RPM_LIST
yum install -y $RPM_LIST
fi
if [[ -n "$BUILD_ID" ]]; then if [[ -n "$BUILD_ID" ]]; then