SHA256
1
0
forked from pool/vim

Accepting request 970914 from home:dirkmueller:Factory

- skip empty post/postun on gvim for SLE15+

OBS-URL: https://build.opensuse.org/request/show/970914
OBS-URL: https://build.opensuse.org/package/show/editors/vim?expand=0&rev=713
This commit is contained in:
Martin Pluskal 2022-04-20 11:54:35 +00:00 committed by Git OBS Bridge
parent a8691a1928
commit da9a46b917
2 changed files with 12 additions and 1 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Apr 19 21:19:35 UTC 2022 - Dirk Müller <dmueller@suse.com>
- skip empty post/postun on gvim for SLE15+
-------------------------------------------------------------------
Wed Apr 13 13:59:49 UTC 2022 - Ondřej Súkup <mimi.vx@gmail.com>

View File

@ -505,11 +505,14 @@ if [ "$1" -gt 0 ] && [ -f %{_sbindir}/update-alternatives ] && [ ! -e %{_bindir}
%{_sbindir}/update-alternatives --remove vim %{_bindir}/vim-small
fi
%if 0%{?suse_version} <= 1315
%post -n gvim
%icon_theme_cache_post
%postun -n gvim
%icon_theme_cache_postun
%endif
%else
# without libalternatives
@ -527,14 +530,17 @@ fi
%{_sbindir}/update-alternatives \
--install %{_bindir}/vim vim %{_bindir}/gvim 30 \
--slave %{_bindir}/vi vi %{_bindir}/gvim
%if 0%{?suse_version} <= 1315
%icon_theme_cache_post
%endif
%postun -n gvim
if [ ! -e %{_bindir}/gvim ] ; then
%{_sbindir}/update-alternatives --remove vim %{_bindir}/gvim
fi
%if 0%{?suse_version} <= 1315
%icon_theme_cache_postun
%endif
%post small
%{_sbindir}/update-alternatives \