]>
git.proxmox.com Git - pve-qemu-kvm.git/blob - debian/postinst
a2a508b32aeb7d9342e6ca00adae34e72e6becca
3 # Abort if any command returns an error value
9 # remove stale /etc/qemu (files are in /etc/kvm)
10 rm -f /etc
/qemu
/target-x86_64.conf
11 if test -d /etc
/qemu
; then rmdir /etc
/qemu
; fi
13 # There are three sub-cases:
14 if test "${2+set}" != set; then
15 # We're being installed by an ancient dpkg which doesn't remember
16 # which version was most recently configured, or even whether
17 # there is a most recently configured version.
20 elif test -z "$2" -o "$2" = "<unknown>"; then
21 # The package has not ever been configured on this system, or was
22 # purged since it was last configured.
26 # Version $2 is the most recently configured version of this
32 # Back out of an attempt to upgrade this package FROM THIS VERSION
33 # to version $2. Undo the effects of "prerm upgrade $2".
38 if test "$2" != in-favour
; then
39 echo "$0: undocumented call to \`postinst $*'" 1>&2
42 # Back out of an attempt to remove this package, which was due to
43 # a conflict with package $3 (version $4). Undo the effects of
44 # "prerm remove in-favour $3 $4".
49 if test "$2" != in-favour
-o "$5" != removing
; then
50 echo "$0: undocumented call to \`postinst $*'" 1>&2
53 # Back out of an attempt to deconfigure this package, which was
54 # due to package $6 (version $7) which we depend on being removed
55 # to make way for package $3 (version $4). Undo the effects of
56 # "prerm deconfigure in-favour $3 $4 removing $6 $7".
60 *) echo "$0: didn't understand being called with \`$1'" 1>&2