From: Jan Palus Date: Thu, 1 Apr 2021 22:45:07 +0000 (+0200) Subject: fix self conflict on /etc/ssl/certs/ca-certificates.crt; rel 4 X-Git-Tag: auto/th/ca-certificates-20210119-4 X-Git-Url: http://git.pld-linux.org/?p=packages%2Fca-certificates.git;a=commitdiff_plain;h=8acc02c4c7cbc1f02d37d4e0ad512996499e3970 fix self conflict on /etc/ssl/certs/ca-certificates.crt; rel 4 "file /etc/ssl/certs/ca-certificates.crt conflicts between attempted installs of ca-certificates-20210119-3.noarch and ca-certificates-20210119-3.noarch" on systems which got an update to ca-certificates-20180409-3 upgrade may fail under rpm4 with above error. the reason being incomplete migration from /etc/ssl/certs being a symlink (20180409-3 f1df9d4) to becoming a directory (20180409-4 0923a3c). drop symlink in %pretrans. --- diff --git a/ca-certificates.spec b/ca-certificates.spec index ebc634a..2357b1d 100644 --- a/ca-certificates.spec +++ b/ca-certificates.spec @@ -13,7 +13,7 @@ Summary(pl.UTF-8): Pliki PEM popularnych certyfikatów CA Name: ca-certificates %define ver_date 20210119 Version: %{ver_date} -Release: 3 +Release: 4 License: GPL v2 (scripts), MPL v2 (mozilla certs), distributable (other certs) Group: Base Source0: http://ftp.debian.org/debian/pool/main/c/ca-certificates/%{name}_%{version}.tar.xz @@ -205,6 +205,11 @@ rm -rf $RPM_BUILD_ROOT %postun update /usr/bin/find "%{openssldir}" -xtype l -delete || : +%pretrans +if [ -L /etc/ssl/certs ]; then + rm -f /etc/ssl/certs +fi + %files %defattr(644,root,root,755) %doc work/debian/{README.Debian,changelog}