diff --git a/vim.changes b/vim.changes index d793278..9a81200 100644 --- a/vim.changes +++ b/vim.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Tue Sep 15 11:34:57 UTC 2020 - Dominique Leuenberger + +- 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 diff --git a/vim.spec b/vim.spec index da6a809..b4093ce 100644 --- a/vim.spec +++ b/vim.spec @@ -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