File: fuse-utils.preinst

package info (click to toggle)
fuse 2.9.0-2%2Bdeb7u2
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 2,928 kB
  • sloc: ansic: 16,541; sh: 11,722; makefile: 182
file content (33 lines) | stat: -rw-r--r-- 802 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/sh
# preinst script for fuse-utils
#
# see: dh_installdeb(1)

set -e

case "$1" in
    install|upgrade)
	    # In Squeeze /usr/share/doc/fuse-utils was a symlink but in
	    # Wheezy fuse-utils is only a transitional package. dpkg 
	    # installs the files over an existing symlink.
	    # When removing fuse-utils package afterwards files installed by
	    # fuse-utils are missing. Thus test first if 
	    # /usr/share/doc/fuse-utils is a symlink and remove it
	    test ! -L /usr/share/doc/fuse-utils || rm /usr/share/doc/fuse-utils
    ;;

    abort-upgrade)
    ;;

    *)
        echo "preinst called with unknown argument \`$1'" >&2
        exit 1
    ;;
esac

# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.

#DEBHELPER#

exit 0