File: gnumeric.preinst

package info (click to toggle)
gnumeric 1.10.8-1squeeze5
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 90,968 kB
  • ctags: 23,303
  • sloc: ansic: 248,235; xml: 51,894; sh: 10,491; makefile: 2,822; perl: 2,466; yacc: 1,272; python: 205
file content (37 lines) | stat: -rwxr-xr-x 643 bytes parent folder | download | duplicates (3)
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

#DEBHELPER#

exit 0