9fc0eb3ecfaab8f2a446d0a5b8d602f4b4f0e6f5
[alioth/soundfonts.git] / debian / musescore-general-soundfont.postrm
1 #!/bin/sh
2
3 set -e
4
5 # This maintainer script can be called the following ways:
6 #
7 # * postrm "remove"
8 # * postrm "purge"
9 # * old-postrm "upgrade" $new_version
10 # * disappearers-postrm "disappear" $overwriter $o_version
11 # The package's files have been removed or replaced; only Essential pak-
12 # kages may be available; skip gracefully actions requiring Depends.
13 #
14 # * new-postrm "failed-upgrade" $old_version
15 # * new-postrm "failed-upgrade" $old_version $new_version # 1.18.5, stretch
16 # Called when 'old-postrm "upgrade"' fails; the new package is unpacked,
17 # Essential packages and Pre-Depends are available; the latter have been
18 # configured and never removed but may be Unpacked or Half-Configured.
19 #
20 # * new-postrm "abort-install" [$old_version]
21 # * new-postrm "abort-install" $old_version $new_version # 1.18.5, stretch
22 # * new-postrm "abort-upgrade" $old_version
23 # * new-postrm "abort-upgrade" $old_version $new_version # 1.18.5, stretch
24 # Called when preinst fails; package is not unpacked. Essential packages
25 # and (unpacked or Half-Configured) Pre-Depends are available.
26
27 case $1 in
28 remove)
29         # safety net, can probably be removed post-buster
30         if test x"musescore-general-soundfont" = x"$(dpkg-divert \
31             --listpackage /usr/share/sounds/sf3/MuseScore_General.sf3)"; then
32 echo >&2 would clean up diversion here
33         fi
34         ;;
35
36 purge)
37         ;;
38
39 upgrade|disappear|failed-upgrade|abort-install|abort-upgrade)
40         ;;
41
42 *)
43         echo >&2 "postrm called with unknown subcommand '$1'"
44         exit 1
45         ;;
46 esac
47
48 # dh_installdeb will replace this with shell code automatically
49 # generated by other debhelper scripts.
50
51 #DEBHELPER#
52
53 exit 0