remove dead links in /etc/openssl/certs when uninstalling update master
authorJan Palus <atler@pld-linux.org>
Thu, 22 Oct 2020 12:54:42 +0000 (14:54 +0200)
committerJan Palus <atler@pld-linux.org>
Thu, 22 Oct 2020 12:54:42 +0000 (14:54 +0200)
ca-certificates.spec

index 619d69f06f31fc4c92982fbb46a140097fe35d4e..cd2f8b11e64beb93a4f38439adff67c766556c02 100644 (file)
@@ -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}
This page took 0.084048 seconds and 4 git commands to generate.