]> git.pld-linux.org Git - packages/ca-certificates.git/commitdiff
- rewrite pretrans in lua to fix chicken-egg problem with /bin/sh on first install... auto/th/ca-certificates-20211016-2
authorJan Rękorajski <baggins@pld-linux.org>
Sat, 16 Oct 2021 23:49:49 +0000 (01:49 +0200)
committerJan Rękorajski <baggins@pld-linux.org>
Sat, 16 Oct 2021 23:49:49 +0000 (01:49 +0200)
ca-certificates.spec

index 7b2ecc802b77b7c24cebd721c185c280c29680bd..49e1f6f0d2369f828ecca9da822b4e7cb7611fd8 100644 (file)
@@ -13,7 +13,7 @@ Summary(pl.UTF-8):    Pliki PEM popularnych certyfikatów CA
 Name:          ca-certificates
 %define        ver_date        20211016
 Version:       %{ver_date}
-Release:       1
+Release:       2
 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
@@ -246,10 +246,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
+%pretrans -p <lua>
+local mode = posix.stat("/etc/ssl/certs")
+if mode["type"] == "link" then
+       posix.unlink("/etc/ssl/certs")
+end
 
 %files
 %defattr(644,root,root,755)
This page took 0.081819 seconds and 4 git commands to generate.