This file is indexed.

preinst is in rxvt-unicode 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
#!/bin/sh
set -e

case $1 in
    upgrade)
        # clean up after old versions, unless the admin chose urxvtcd
        if ! update-alternatives --query x-terminal-emulator | grep -q \
                '^Value: /usr/bin/urxvtcd$'; then
            update-alternatives --remove x-terminal-emulator /usr/bin/urxvtcd
        fi
        if dpkg --compare-versions $2 lt 9.22-2; then
            # Drop rxvt alternative: no longer needed and we provide the symlink
            if update-alternatives --list rxvt >/dev/null; then
                update-alternatives --remove-all rxvt
            fi
        fi
    ;;
    install)
        # Drop rxvt alternative: no longer needed and we provide the symlink
        if update-alternatives --list rxvt >/dev/null; then
            update-alternatives --remove-all rxvt
        fi
;;
esac