fix sof-ace-tplg directory symlink collisions (lua pretrans)

Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2272860
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
Jaroslav Kysela 2024-04-03 08:47:23 +02:00
commit 176feaa75d

View file

@ -19,7 +19,7 @@
Summary: Firmware and topology files for Sound Open Firmware project
Name: alsa-sof-firmware
Version: %{sof_ver}
Release: 1%{?sof_ver_rel}%{?dist}
Release: 2%{?sof_ver_rel}%{?dist}
# See later in the spec for a breakdown of licensing
License: BSD-3-Clause Apache-2.0
URL: https://github.com/thesofproject/sof-bin
@ -153,8 +153,15 @@ if st and st.type == "link" then
os.remove(path)
end
path1 = "%{_firmwarepath}/intel/sof-ace-tplg"
path2 = "%{_firmwarepath}/intel/sof-ipc4-tplg"
st = posix.stat(path1)
if st and st.type == "directory" then
os.rename(path1, path2)
end
%changelog
* Tue Apr 2 2024 Jaroslav Kysela <perex@perex.cz> - 2024.03-1
* Wed Apr 3 2024 Jaroslav Kysela <perex@perex.cz> - 2024.03-2
- Update to v2024.03
* Tue Mar 5 2024 Jaroslav Kysela <perex@perex.cz> - 2023.12.1-1