This file is indexed.

preinst is in inn2 2.5.2+20110413-1build1.

This file is a maintainer script. It is executed when installing (*inst) or removing (*rm) the package.

The actual contents of the file can be viewed below.

 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
#!/bin/sh -e

upgrade_quirks() {
  # $2 is non-empty when installing from the "config-files" state
  [ "$2" ] || return 0

  if dpkg --compare-versions $2 lt 2.3.1-2; then
  if dpkg --compare-versions $2 eq 2.3.0-1; then
    echo 'Upgrading from 2.3.0-1 to >= 2.3.999+20030125-4 is not supported.'
    exit 1
  fi

  # remove any remaining symlinks under /usr/lib/news/bin/filter, then remove
  # the directory if it's empty
  if [ -d /usr/lib/news/bin/filter ]; then
    find /usr/lib/news/bin/filter -type l -exec rm {} \;
    rmdir /usr/lib/news/bin/filter 2> /dev/null || true
  fi

  fi # 2.3.1-2
}

case "$1" in
    install|upgrade)
    upgrade_quirks "$@"
esac



exit 0