add uninstall guard to %postun u-a

OBS-URL: https://build.opensuse.org/package/show/security:netfilter/ebtables?expand=0&rev=52
This commit is contained in:
Jan Engelhardt 2018-09-01 13:13:17 +00:00 committed by Git OBS Bridge
parent a5722ab5b9
commit d34af398ca

View File

@ -135,7 +135,9 @@ update-alternatives --force \
%service_del_preun %{name}.service
%postun
if test "$1" = 0; then
update-alternatives --remove ebtables "%{_sbindir}/ebtables-legacy"
fi
%service_del_postun %{name}.service
%files