File: gnumeric.preinst

package info (click to toggle)
gnumeric 1.6.3-5.1%2Betch2
  • links: PTS
  • area: main
  • in suites: etch
  • size: 70,644 kB
  • ctags: 18,973
  • sloc: ansic: 204,271; xml: 47,128; sh: 8,917; makefile: 2,540; yacc: 1,137; perl: 179; python: 86
file content (34 lines) | stat: -rw-r--r-- 630 bytes parent folder | download | duplicates (2)
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
#! /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_title Detected a running gnumeric process

# 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