File: gnumeric.preinst

package info (click to toggle)
gnumeric 1.12.18-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 103,816 kB
  • ctags: 25,022
  • sloc: ansic: 278,696; xml: 54,477; sh: 11,677; perl: 4,216; makefile: 2,751; yacc: 1,324; python: 203
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