This file is indexed.

preinst is in gnumeric 1.10.17-1ubuntu2.

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

if ! test -e /usr/share/debconf/confmodule ; then
	# Nothing we can do
	exit 0
fi

if ! pgrep gnumeric 2>&1 >/dev/null ; then
	# Nothing more to do
	exit 0
fi

. /usr/share/debconf/confmodule

db_version 2.0
db_settitle gnumeric/existing-process-title

# Ignore the fact that this question may have been answered on another
# occasion already
db_fset gnumeric/existing-process seen false

# Try hard to get it answered
db_input high gnumeric/existing-process || true
db_go
db_get gnumeric/existing-process
if [ "$RET" = "false" ] ; then
	# Abort installation of the package
	db_stop
	exit 1
fi

db_stop



exit 0