diff --git a/crypto-policies.spec b/crypto-policies.spec index b346211..45fdc7c 100644 --- a/crypto-policies.spec +++ b/crypto-policies.spec @@ -1,4 +1,4 @@ -%global git_date 20210118 +%global git_date 20210127 %global git_commit b21c8114995e07965c2ccde5f5767d0618d854bf %{?git_commit:%global git_commit_hash %(c=%{git_commit}; echo ${c:0:7})} @@ -121,10 +121,12 @@ if not posix.access("%{_sysconfdir}/crypto-policies/config") then end local policypath = "%{_datarootdir}/crypto-policies/"..policy for fn in posix.files(policypath) do - local backend = fn:gsub(".*/", ""):gsub("%%..*", "") - local cfgfn = "%{_sysconfdir}/crypto-policies/back-ends/"..backend..".config" - posix.unlink(cfgfn) - posix.symlink(policypath.."/"..fn, cfgfn) + if fn != "." and fn != ".." then + local backend = fn:gsub(".*/", ""):gsub("%%..*", "") + local cfgfn = "%{_sysconfdir}/crypto-policies/back-ends/"..backend..".config" + posix.unlink(cfgfn) + posix.symlink(policypath.."/"..fn, cfgfn) + end end end @@ -183,6 +185,12 @@ end %{_mandir}/man8/fips-finish-install.8* %changelog +* Wed Jan 27 2021 Alexander Sosedkin - 20210127-1.gitb21c811 +- don't create /etc/crypto-policies/back-ends/.config in %post + +* Tue Jan 26 2021 Fedora Release Engineering - 20210118-2.gitb21c811 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + * Mon Jan 18 2021 Alexander Sosedkin - 20210118-1.gitb21c811 - output sigalgs required by nss >=3.59 (or 3.60 in Fedora case) - bump Python requirement to 3.6