This file is indexed.

postinst is in aspell-no 2.0.10-5.1.

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

. /usr/share/debconf/confmodule

# Ask user about which aspell-dictionary it wants to use.
# (This should probably be replaced by debconf, eventually)
if [ "$1" = "configure" ]; then

  db_get aspell-no/whichvariant || true
  if [ "$RET" ]; then
    cd /usr/lib/aspell
    rm -f no.dat no norsk
    ln -f -s "$RET.dat" no.dat
    ln -f -s "${RET}_phonet.dat" no_phonet.dat
    if [ "$RET" = bokmaal ]; then
        ln -sf nb.multi no.multi
    elif [ "$RET" = nynorsk ]; then
        ln -sf nn.multi no.multi
    fi
  fi
fi

D=/usr/lib/aspell-0.60
if [ -d  "$D" ]; then
    rm -f $D/no.dat $D/no.multi $D/no_phonet.dat
    rmdir --ignore-fail-on-non-empty $D
fi