#!/bin/sh
# prerm of package irussian
# Adapted from prerm script of package iportuguese


set -e

case "$1" in
    remove)   
	if [ -n "`update-alternatives --display ispell-dictionary.hash \
	| grep russian | grep 999`" ]
	then
	    update-alternatives --remove ispell-dictionary.hash 		\
		/usr/lib/ispell/russian.hash > /dev/null
	    update-ispell-dictionary
	else
	    update-alternatives --remove ispell-dictionary.hash 		\
	    /usr/lib/ispell/russian.hash > /dev/null
	fi 
        ;;
    upgrade | failed-upgrade | deconfigure)
	;;
    *)
	echo "$0: incorrect arguments: $*" >&2
	exit 1
	;;
esac

#DEBHELPER#

exit 0

