Accepting request 834594 from home:dimstar:Factory

- Fix postun scriptlet of vim-small: do not unconditionally
  deregister vim-small as an alternative on uninstall (which
  happens on package upgrades too) (boo#1176549).

OBS-URL: https://build.opensuse.org/request/show/834594
OBS-URL: https://build.opensuse.org/package/show/editors/vim?expand=0&rev=620
This commit is contained in:
Ismail Dönmez 2020-09-15 11:44:21 +00:00 committed by Git OBS Bridge
parent 77ec2c06eb
commit 270efa0204
2 changed files with 10 additions and 1 deletions

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Tue Sep 15 11:34:57 UTC 2020 - Dominique Leuenberger <dimstar@opensuse.org>
- Fix postun scriptlet of vim-small: do not unconditionally
deregister vim-small as an alternative on uninstall (which
happens on package upgrades too) (boo#1176549).
-------------------------------------------------------------------
Wed Sep 2 06:20:24 UTC 2020 - Thorsten Kukuk <kukuk@suse.com>

View File

@ -450,7 +450,9 @@ fi
--slave %{_bindir}/vi vi %{_bindir}/vim-small
%postun small
%{_sbindir}/update-alternatives --remove vim %{_bindir}/vim-small
if [ ! -e %{_bindir}/vim-small ] ; then
%{_sbindir}/update-alternatives --remove vim %{_bindir}/vim-small
fi
%files
%ghost %{_sysconfdir}/alternatives/vim