[packages/ca-certificates] don't mark ca-certificates.crt as %config(noreplace)

Elan Ruusamäe glen at pld-linux.org
Mon Feb 1 10:35:45 CET 2021


On 30.01.2021 13:30, atler wrote:

> commit 7bc3bef894722f37879324960a96540fc9945a14
> Author: Jan Palus <atler at pld-linux.org>
> Date:   Sat Jan 30 12:24:52 2021 +0100
>
>      don't mark ca-certificates.crt as %config(noreplace)
>      
>      ...or it may never get updated after single installation of
>      ca-certificates-update. Let's assume anyone with custom certificates has
>      ca-certificates-update which will update ca-certificates.crt after
>      upgrade
>
>   ca-certificates.spec | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> ---
> diff --git a/ca-certificates.spec b/ca-certificates.spec
> index 7da43aa..b500452 100644
> --- a/ca-certificates.spec
> +++ b/ca-certificates.spec
> @@ -214,7 +214,7 @@ rm -rf $RPM_BUILD_ROOT
>   %dir /etc/ssl/certs
>   /etc/ssl/certs/ca-certificates.crt
>   %config(noreplace) %verify(not md5 mtime size) /etc/pki/tls/certs/ca-bundle.crt
> -%config(noreplace) %verify(not md5 mtime size) %{certsdir}/ca-certificates.crt
> +%verify(not md5 mtime size) %{certsdir}/ca-certificates.crt
>   

i propose to use %config so it would at least keep backup as .rpmold


More information about the pld-devel-en mailing list