This file is indexed.

preinst is in mailman 1:2.1.26-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
28
29
30
31
32
33
34
35
36
37
38
#!/bin/sh -e

. /usr/share/debconf/confmodule



abort_install()
{
    db_fset mailman/queue_files_present seen false || true
    db_input critical mailman/queue_files_present || true
    db_go
    db_get mailman/queue_files_present
    if [ "$RET" = "abort installation" ]; then
        exit 1
    fi
}

# make sure the qfiles directory is empty.
if [ -d /var/lib/mailman/qfiles ] && \
	[ "$(find /var/lib/mailman/qfiles -type f | wc -l)" -ne 0 ]; then
    # Check if the queue files were created by the same version as the one we're about to install
    if [ -r /var/lib/mailman/.version ]; then
	# First check the stamp file.
	# It is more general because it will show the previous version in the
	# case that /var/lib/mailman is on permanent storage (e.g. a SAN) and
	# we are being installed for the first time.
        previous_version=$(cat /var/lib/mailman/.version)
    else
        # Fall back to reading dpkg-provided argument (in case previous version did not leave the stamp file)
        previous_version="$2"
    fi
    if [ "1:2.1.26-1" != "${previous_version}" ]; then
        # we don't know which version the files are from
        abort_install
    fi
fi

exit 0