File: ipolish.postinst

package info (click to toggle)
ipolish 20080609-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 1,264 kB
  • ctags: 19
  • sloc: perl: 243; makefile: 114; awk: 43; sh: 17
file content (20 lines) | stat: -rw-r--r-- 438 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
#!/bin/sh

set -e


if [ "$1" = "configure" ] && dpkg --compare-versions "$2" lt-nl "20070410-1"; then
    rm -f /var/lib/ispell/polish.hash
    rm -f /var/lib/ispell/polish.list
    rm -f /var/lib/ispell/polish.compat
    [ ! -d /var/lib/ispell ] || rmdir --ignore-fail-on-non-empty /var/lib/ispell

    if [ -e /usr/share/debconf/confmodule ]; then
  	. /usr/share/debconf/confmodule
        db_purge  || true
    fi	
fi


#DEBHELPER#