From 270efa0204833918cc91236cf1af0e74277bc5bb26e01ea18f45d25f6e57f9cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ismail=20D=C3=B6nmez?= Date: Tue, 15 Sep 2020 11:44:21 +0000 Subject: [PATCH] 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 --- vim.changes | 7 +++++++ vim.spec | 4 +++- 2 files changed, 10 insertions(+), 1 deletion(-) 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