This commit is contained in:
parent
f829a33263
commit
b32256acf5
@ -469,8 +469,6 @@ sed -i 's:%{buildroot}::' %{buildroot}/%{_libdir}/ImageMagick-%{mfr_version}/con
|
|||||||
%postun -n libMagick++%{libspec}%{cxxlibver} -p /sbin/ldconfig
|
%postun -n libMagick++%{libspec}%{cxxlibver} -p /sbin/ldconfig
|
||||||
|
|
||||||
%pretrans %{config_spec}-upstream -p <lua>
|
%pretrans %{config_spec}-upstream -p <lua>
|
||||||
# this %pretrans to be removed soon
|
|
||||||
# https://bugzilla.suse.com/show_bug.cgi?id=1122033#c37
|
|
||||||
path = "%{_sysconfdir}/%{config_dir}"
|
path = "%{_sysconfdir}/%{config_dir}"
|
||||||
st = posix.stat(path)
|
st = posix.stat(path)
|
||||||
if st and st.type == "directory" then
|
if st and st.type == "directory" then
|
||||||
@ -478,6 +476,7 @@ if st and st.type == "directory" then
|
|||||||
os.rename(path, path .. ".rpmmoved")
|
os.rename(path, path .. ".rpmmoved")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# this %%pretrans to be removed soon [bug#1122033#c37]
|
||||||
%post %{config_spec}-upstream
|
%post %{config_spec}-upstream
|
||||||
%{_sbindir}/update-alternatives --install %{_sysconfdir}/%{config_dir} %{config_dir} %{_sysconfdir}/%{config_dir}-upstream 1
|
%{_sbindir}/update-alternatives --install %{_sysconfdir}/%{config_dir} %{config_dir} %{_sysconfdir}/%{config_dir}-upstream 1
|
||||||
|
|
||||||
@ -486,9 +485,8 @@ if [ ! -d %{_sysconfdir}/%{config_dir}-upstream ] ; then
|
|||||||
%{_sbindir}/update-alternatives --remove %{config_dir} %{_sysconfdir}/%{config_dir}-upstream
|
%{_sbindir}/update-alternatives --remove %{config_dir} %{_sysconfdir}/%{config_dir}-upstream
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# this %%pretrans to be removed soon [bug#1122033#c37]
|
||||||
%pretrans %{config_spec}-SUSE -p <lua>
|
%pretrans %{config_spec}-SUSE -p <lua>
|
||||||
# this %pretrans to be removed soon
|
|
||||||
# https://bugzilla.suse.com/show_bug.cgi?id=1122033#c37
|
|
||||||
path = "%{_sysconfdir}/%{config_dir}"
|
path = "%{_sysconfdir}/%{config_dir}"
|
||||||
st = posix.stat(path)
|
st = posix.stat(path)
|
||||||
if st and st.type == "directory" then
|
if st and st.type == "directory" then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user