Do not delete nonexisting module during uninstall (#1526670)

This commit is contained in:
Jakub Jelen 2018-03-02 18:57:06 +01:00
parent 56a9408e5f
commit 15d668cfaf

View File

@ -112,8 +112,11 @@ fi
%postun
/sbin/ldconfig
if [ $1 -eq 0 ]; then
isThere=`modutil -rawlist -dbdir %{nssdb} | grep %{opensc_module} || echo NO`
if [ ! "$isThere" == "NO" ]; then
modutil -delete %{opensc_module} -dbdir %{nssdb} -force || :
fi
fi
%files
%defattr(-,root,root,-)