[packages/ca-certificates] fix self conflict on /etc/ssl/certs/ca-certificates.crt; rel 4

atler atler at pld-linux.org
Fri Apr 2 00:55:20 CEST 2021


commit 8acc02c4c7cbc1f02d37d4e0ad512996499e3970
Author: Jan Palus <atler at pld-linux.org>
Date:   Fri Apr 2 00:45:07 2021 +0200

    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.

 ca-certificates.spec | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
---
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}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/ca-certificates.git/commitdiff/8acc02c4c7cbc1f02d37d4e0ad512996499e3970



More information about the pld-cvs-commit mailing list