File: python2.1-pgsql.postinst

package info (click to toggle)
python-pgsql 2.4.0-5sarge1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 984 kB
  • ctags: 1,291
  • sloc: ansic: 5,913; python: 4,334; sh: 73; makefile: 71
file content (22 lines) | stat: -rw-r--r-- 488 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh
set -e

VERSION=2.1
PACKAGE=python$VERSION-pgsql
MODULEDIR="/usr/lib/python$VERSION/site-packages/pyPgSQL"

#DEBHELPER#

case "$1" in
    configure|abort-upgrade|abort-remove|abort-deconfigure)
        /usr/bin/python$VERSION -O /usr/lib/python$VERSION/compileall.py -q $MODULEDIR
        /usr/bin/python$VERSION /usr/lib/python$VERSION/compileall.py -q $MODULEDIR
    ;;

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

exit 0