Update Spanish translation
[gnumeric.git] / debian / gnumeric.preinst
blob8bb32c137daa3a61d7b5619bd58f329851df83b9
1 #! /bin/sh
2 set -e
4 if ! test -e /usr/share/debconf/confmodule ; then
5 # Nothing we can do
6 exit 0
7 fi
9 if ! pgrep gnumeric 2>&1 >/dev/null ; then
10 # Nothing more to do
11 exit 0
14 . /usr/share/debconf/confmodule
16 db_version 2.0
17 db_settitle gnumeric/existing-process-title
19 # Ignore the fact that this question may have been answered on another
20 # occasion already
21 db_fset gnumeric/existing-process seen false
23 # Try hard to get it answered
24 db_input high gnumeric/existing-process || true
25 db_go
26 db_get gnumeric/existing-process
27 if [ "$RET" = "false" ] ; then
28 # Abort installation of the package
29 db_stop
30 exit 1
33 db_stop
35 #DEBHELPER#
37 exit 0