GRMLBASE/90-update-alternatives: support vim >=2:8.1.2136-1
authorMichael Prokop <mika@grml.org>
Tue, 22 Oct 2019 09:02:19 +0000 (11:02 +0200)
committerMichael Prokop <mika@grml.org>
Tue, 22 Oct 2019 10:42:44 +0000 (12:42 +0200)
commit0e8474f18ca945da03ab62f21f41e56014c7878e
tree488716a6dcd2899f7d22cb2b6be366e6f7ca9d53
parent8f9aa66e0b444ec8c68c2dcdf7055db3bd3ee68b
GRMLBASE/90-update-alternatives: support vim >=2:8.1.2136-1

vim 2:8.1.2136-1 moved /usr/bin/vim.* into /usr/libexec/vim/,
so we need to check for its base path.

Also vim-gtk became a transitional package for vim-gtk3 and
the binary is called vim.gtk3, add according additional check.

Fixes:

| Setting vim.gtk as editor using update-alternatives.
| update-alternatives: error: alternative /usr/bin/vim.gtk for editor not registered; not setting
| GRMLBASE/90-update-alternatives FAILED with exit code 2.
etc/grml/fai/config/scripts/GRMLBASE/90-update-alternatives