This file is indexed.

preinst is in aterm 9.22-3.

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

case $1 in
    upgrade)
        # We're transitioning from an ancient version of aterm to something
        # post-transition.
        if dpkg --compare-versions $2 lt 1.0.1dummy1; then
            update-alternatives --remove aterm /usr/bin/aterm-xterm
            update-alternatives --remove x-terminal-emulator /usr/bin/aterm-xterm
            # Remove those from aterm-ml as well.
            update-alternatives --remove aterm /usr/bin/katerm
            update-alternatives --remove aterm /usr/bin/caterm
            update-alternatives --remove aterm /usr/bin/gaterm
            update-alternatives --remove aterm /usr/bin/taterm
            update-alternatives --remove x-terminal-emulator /usr/bin/katerm
            update-alternatives --remove x-terminal-emulator /usr/bin/caterm
            update-alternatives --remove x-terminal-emulator /usr/bin/gaterm
            update-alternatives --remove x-terminal-emulator /usr/bin/taterm
        fi
        ;;
    *)
    ;;
esac



exit 0