Debian Codegraph @

debian/apt-offline.preinst

raw
1 #!/bin/sh
2 # preinst script for apt-offline
3
4 set -e
5
6 # summary of how this script can be called:
7 # * <new-preinst> `install'
8 # * <new-preinst> `install' <old-version>
9 # * <new-preinst> `upgrade' <old-version>
10 # * <old-preinst> `abort-upgrade' <new-version>
11 # for details, see http://www.debian.org/doc/debian-policy/ or
12 # the debian-policy package
13
14
15 case "$1" in
16 install|upgrade)
17 dpkg-maintscript-helper rm_conffile /etc/bash_completion.d/apt-offline -- "$@"
18 ;;
19
20 abort-upgrade)
21 ;;
22
23 *)
24 echo "preinst called with unknown argument \`$1'" >&2
25 exit 1
26 ;;
27 esac
28
29 #DEBHELPER#
30
31 exit 0