]>
git.proxmox.com Git - pve-manager.git/blob - debian/prerm
3eca4eb62dbb2bf6254e039521ff378efa0b4aa9
3 # Abort if any command returns an error value
6 # This script is called as the first step in removing the package from
7 # the system. This includes cases where the user explicitly asked for
8 # the package to be removed, upgrade, automatic removal due to conflicts,
9 # and deconfiguration due to temporary removal of a depended-on package.
11 package_name
=pve-manager
;
15 # This package about to be removed.
17 # There are two sub-cases:
18 if test "${2+set}" = set; then
19 if test "$2" != in-favour
; then
20 echo "$0: undocumented call to \`prerm $*'" 1>&2
23 # We are being removed because of a conflict with package $3
24 # (version $4), which is now being installed.
28 # The package is being removed in its own right.
33 if test "$2" != in-favour
-o "$5" != removing
; then
34 echo "$0: undocumented call to \`prerm $*'" 1>&2
37 # Package $6 (version $7) which we depend on is being removed due
38 # to a conflict with package $3 (version $4), and this package is
39 # being deconfigured until $6 can be reinstalled.
44 # Prepare to upgrade FROM THIS VERSION of this package to version $2.
46 if [ -L /usr
/doc
/$package_name ]; then
47 rm -f /usr
/doc
/$package_name
53 # Prepare to upgrade from version $2 of this package TO THIS VERSION.
54 # This is only used if the old version's prerm couldn't handle it,
55 # and returned non-zero. (Fix old prerm bugs here.)
59 *) echo "$0: didn't understand being called with \`$1'" 1>&2