#!/bin/sh -e

# Written 1998 by Gregor Hoffleit <flight@debian.org>.
# Shamelessly adapted 2002: by Andrea Mennucc



case "$1" in
    configure|abort-upgrade|abort-remove|abort-deconfigure)
        for PV in 1.5 2.0 2.1 2.2 ; do
           DIRLIST="/usr/lib/python$PV/site-packages/dbGtk"
           if [ -x /usr/bin/python$PV ] ; then
            /usr/bin/python$PV -O /usr/lib/python$PV/compileall.py -f -q  $DIRLIST
            /usr/bin/python$PV /usr/lib/python$PV/compileall.py -f -q  $DIRLIST
           fi
        done
    ;;

    *)
        echo "postinst called with unknown argument \`$1'" >&2
        exit 1
    ;;
esac


#DEBHELPER#

exit 0
