]> git.pld-linux.org Git - packages/ca-certificates.git/commitdiff
fix self conflict on /etc/ssl/certs/ca-certificates.crt; rel 4 auto/th/ca-certificates-20210119-4
authorJan Palus <atler@pld-linux.org>
Thu, 1 Apr 2021 22:45:07 +0000 (00:45 +0200)
committerJan Palus <atler@pld-linux.org>
Thu, 1 Apr 2021 22:45:07 +0000 (00:45 +0200)
"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.

ca-certificates.spec

index ebc634a918552cb2c07a3c7f14ed9c3cdb54c390..2357b1d98b69ce672fd3fddd2ecafd9060bc473d 100644 (file)
@@ -13,7 +13,7 @@ Summary(pl.UTF-8):    Pliki PEM popularnych certyfikatów CA
 Name:          ca-certificates
 %define        ver_date        20210119
 Version:       %{ver_date}
 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
 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 || :
 
 %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}
 %files
 %defattr(644,root,root,755)
 %doc work/debian/{README.Debian,changelog}
This page took 0.10692 seconds and 4 git commands to generate.