Linux lhjmq-records 5.15.0-118-generic #128-Ubuntu SMP Fri Jul 5 09:28:59 UTC 2024 x86_64
Your IP : 3.15.192.89
Current Path : /var/lib/dpkg/info/ |
| Current File : /var/lib/dpkg/info/vim-runtime.postrm |
#!/bin/sh
set -e
vimcur="vim82"
basedir=/usr/share/vim/$vimcur/doc
rm_diversion() {
dpkg-divert --package vim-runtime --rename --remove "$1"
}
# When upgrading to a new major upstream release, we need to remove the old
# vim-tiny help(tags) diversions
major_upgrade() {
newver="${1#?:}"
newver="vim$(echo ${newver%.*-*} | sed 's/\.//g')"
[ "$newver" != "$vimcur" ]
}
rm -f /usr/share/vim/addons/doc/tags
if [ "$1" = "remove" -o "$1" = "abort-install" -o "$1" = "disappear" ] \
|| ([ "$1" = "upgrade" ] && major_upgrade $2); then
rm_diversion $basedir/help.txt
rm_diversion $basedir/tags
fi
exit 0
|