File: prerm

package info (click to toggle)
vim-bitbake 0~git20200915-1
  • links: PTS
  • area: main
  • in suites: bullseye
  • size: 96 kB
  • sloc: sh: 28; makefile: 6
file content (27 lines) | stat: -rw-r--r-- 610 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/sh

set -e

case "$1" in
    remove|upgrade|deconfigure)
        vim-addon-manager -w remove bitbake > /dev/null
    ;;

    failed-upgrade)
        # This will be interesting if vim-addon-manager changes behaviour
        # in a way that the prerm-script of the old version of the package
        # cannot be run successfully anymore and the prerm-script of the
        # new version of the package can fix this issue. But for now, this
        # is not the case.
        exit 1
    ;;

    *)
        echo "prerm called with unknown argument \`$1'" >&2
        exit 1
    ;;
esac

#DEBHELPER#

exit 0