From: Jan Palus Date: Thu, 22 Oct 2020 12:54:42 +0000 (+0200) Subject: remove dead links in /etc/openssl/certs when uninstalling update X-Git-Tag: auto/th/ca-certificates-20210119-1~1 X-Git-Url: http://git.pld-linux.org/gitweb.cgi?a=commitdiff_plain;h=6587a0f25796ff436cfcd5841c9a819dad81821e;p=packages%2Fca-certificates.git remove dead links in /etc/openssl/certs when uninstalling update --- diff --git a/ca-certificates.spec b/ca-certificates.spec index 619d69f..cd2f8b1 100644 --- a/ca-certificates.spec +++ b/ca-certificates.spec @@ -1,5 +1,4 @@ # TODO -# - cleanup dead links from /etc/openssl/certs after -update uninstall # - https://bugzilla.mozilla.org/show_bug.cgi?id=549701 and # http://groups.google.com/group/mozilla.dev.security.policy/browse_thread/thread/b6493a285ba79998# # - make amsn use system certs @@ -257,6 +256,9 @@ rm -rf $RPM_BUILD_ROOT %post update %{_sbindir}/update-ca-certificates --fresh || : +%postun update +/usr/bin/find "%{openssldir}" -xtype l -delete || : + %files %defattr(644,root,root,755) %doc work/debian/{README.Debian,changelog}