From d60701aa6f094ba93dd480afda2eb1ff1b19a663 Mon Sep 17 00:00:00 2001 From: Jakub Jelen Date: Thu, 9 Jan 2020 15:07:37 +0100 Subject: [PATCH] Drop migration post scriptlet This is no longer needed as the change was executed in Fedora 29 https://fedoraproject.org/wiki/Changes/NSSLoadP11KitModules --- opensc.spec | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/opensc.spec b/opensc.spec index 26c5f3c..fccd726 100644 --- a/opensc.spec +++ b/opensc.spec @@ -125,21 +125,6 @@ desktop-file-validate %{buildroot}/%{_datadir}/applications/org.opensc.notify.de %post /sbin/ldconfig -# Remove our PKCS#11 module from NSS DB, if there is NSS installed, because -# it is already loaded by p11-kit-proxy. Using both of them can cause -# race conditions and hard-to-debug problems -# TODO Remove with F30 or so -if [ -x /usr/bin/modutil ]; then - isThere=`modutil -rawlist -dbdir %{nssdb} | grep %{opensc_module} || echo NO` - if [ ! "$isThere" == "NO" ]; then - modutil -delete %{opensc_module} -dbdir %{nssdb} -force || : - - fi - isThere=`modutil -rawlist -dbdir sql:%{nssdb} | grep %{opensc_module} || echo NO` - if [ ! "$isThere" == "NO" ]; then - modutil -delete %{opensc_module} -dbdir sql:%{nssdb} -force || : - fi -fi %postun /sbin/ldconfig