Fix pretrans lua script error for first installation (not upgrade)

(#2131236)
epel9 imports/e9/lv2-1.18.8-4.el9
Mamoru TASAKA 2 years ago
parent c0eab2a6b7
commit 254d78e48b

@ -2,7 +2,7 @@
Name: lv2 Name: lv2
Version: 1.18.8 Version: 1.18.8
Release: 3%{?dist} Release: 4%{?dist}
Summary: Audio Plugin Standard Summary: Audio Plugin Standard
# lv2specgen template.html is CC-AT-SA # lv2specgen template.html is CC-AT-SA
@ -114,7 +114,11 @@ table.insert(parent_dirs, hdir)
for i = 1, #parent_dirs, 1 do -- not use ipairs here to guarantee order for i = 1, #parent_dirs, 1 do -- not use ipairs here to guarantee order
parent = parent_dirs[i] parent = parent_dirs[i]
for j, path in pairs(posix.dir(parent)) do dir_entry = posix.dir(parent)
if not(dir_entry) then
goto skip_2
end
for j, path in pairs(dir_entry) do
exclude_list = {"." , ".."} exclude_list = {"." , ".."}
for k, ex in ipairs(exclude_list) do for k, ex in ipairs(exclude_list) do
if path == ex then if path == ex then
@ -131,6 +135,7 @@ for i = 1, #parent_dirs, 1 do -- not use ipairs here to guarantee order
::skip_1:: ::skip_1::
end end
::skip_2::
end end
-- Remove extra symlinks -- Remove extra symlinks
@ -195,6 +200,10 @@ end
%doc %{_vpath_builddir}/doc/* %doc %{_vpath_builddir}/doc/*
%changelog %changelog
* Fri Sep 30 2022 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.18.8-4
- Fix pretrans lua script error for first installation (not upgrade)
(#2131236)
* Fri Sep 23 2022 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.18.8-3 * Fri Sep 23 2022 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.18.8-3
- Remove all symlinks in previous -devel subpackage in %%pre_trans - Remove all symlinks in previous -devel subpackage in %%pre_trans
to ensure update transaction (#2123422) to ensure update transaction (#2123422)

Loading…
Cancel
Save