Files
evolution/debian/evolution.preinst
Josselin Mouette 33c6dd1735 evolution.preinst: use pgrep to match evolution processes instead of
being so strict. Closes: #525985.

git-svn-id: file:///svn/pkg-evolution/unstable/evolution@1198 ed03ce00-e4f4-0310-9448-ee38221cb277
2009-05-02 07:32:45 +00:00

34 lines
616 B
Bash

#! /bin/sh
set -e
. /usr/share/debconf/confmodule
error_msg() {
db_title Upgrading evolution
db_fset evolution/needs_shutdown seen false
db_input high evolution/needs_shutdown || true
db_go
}
upgrade_check() {
seen=0
while pgrep '^(/usr/lib/)?evolution' > /dev/null; do
error_msg
seen=$(($seen + 1))
if [ $seen = 3 ]; then
db_stop
echo "Evolution is still running, aborting..."
exit 1
fi
done
db_stop
echo "No more Evolution instances running, proceeding with the upgrade..."
}
if dpkg --compare-versions "$2" lt-nl 2.24; then
upgrade_check
fi
#DEBHELPER#