Merged update from upstream sources

This is an automated DistroBaker update from upstream sources.
If you do not know what this is about or would like to opt out,
contact the OSCI team.

Source: https://src.fedoraproject.org/rpms/crypto-policies.git#37a4fa3b51dd14d8dbaf31fab953ef3e0ffd35da
This commit is contained in:
DistroBaker 2021-01-27 15:45:17 +00:00
parent 7a413d9e46
commit cfac1122f9

View File

@ -6,7 +6,7 @@
Name: crypto-policies Name: crypto-policies
Version: %{git_date} Version: %{git_date}
Release: 1.git%{git_commit_hash}%{?dist} Release: 2.git%{git_commit_hash}%{?dist}
Summary: System-wide crypto policies Summary: System-wide crypto policies
License: LGPLv2+ License: LGPLv2+
@ -121,7 +121,7 @@ if not posix.access("%{_sysconfdir}/crypto-policies/config") then
end end
local policypath = "%{_datarootdir}/crypto-policies/"..policy local policypath = "%{_datarootdir}/crypto-policies/"..policy
for fn in posix.files(policypath) do for fn in posix.files(policypath) do
if fn != "." and fn != ".." then if fn ~= "." and fn ~= ".." then
local backend = fn:gsub(".*/", ""):gsub("%%..*", "") local backend = fn:gsub(".*/", ""):gsub("%%..*", "")
local cfgfn = "%{_sysconfdir}/crypto-policies/back-ends/"..backend..".config" local cfgfn = "%{_sysconfdir}/crypto-policies/back-ends/"..backend..".config"
posix.unlink(cfgfn) posix.unlink(cfgfn)
@ -185,6 +185,9 @@ end
%{_mandir}/man8/fips-finish-install.8* %{_mandir}/man8/fips-finish-install.8*
%changelog %changelog
* Wed Jan 27 2021 Alexander Sosedkin <asosedkin@redhat.com> - 20210127-2.gitb21c811
- fix comparison in %post lua scriptlet
* Wed Jan 27 2021 Alexander Sosedkin <asosedkin@redhat.com> - 20210127-1.gitb21c811 * Wed Jan 27 2021 Alexander Sosedkin <asosedkin@redhat.com> - 20210127-1.gitb21c811
- don't create /etc/crypto-policies/back-ends/.config in %post - don't create /etc/crypto-policies/back-ends/.config in %post