Update Swedish translation.
[dpkg.git] / debian / dselect.preinst
blobc12f737f2f1c6f49f4e9cc35832c4ffa8b95086e
1 #!/bin/sh -e
2 # This script can be called in the following ways:
4 # Before the package is installed:
5 # <new-preinst> install
7 # Before removed package is upgraded:
8 # <new-preinst> install <old-version>
10 # Before the package is upgraded:
11 # <new-preinst> upgrade <old-version>
14 # If postrm fails during upgrade or fails on failed upgrade:
15 # <old-preinst> abort-upgrade <new-version>
17 remove_doc_symlink() {
18 if [ -L /usr/share/doc/dselect ]; then
19 rm /usr/share/doc/dselect
23 case "$1" in
24 install)
27 upgrade)
28 remove_doc_symlink
31 abort-upgrade)
36 echo "$0 called with unknown argument \`$1'" 1>&2
37 exit 1
39 esac
41 #DEBHELPER#
42 exit 0