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