diff options
Diffstat (limited to 'debian/python-logilab-common.postinst')
-rw-r--r-- | debian/python-logilab-common.postinst | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/debian/python-logilab-common.postinst b/debian/python-logilab-common.postinst new file mode 100644 index 0000000..4269962 --- /dev/null +++ b/debian/python-logilab-common.postinst @@ -0,0 +1,24 @@ +#! /bin/sh -e +# + + + +# precompile python files +VERSION=2.3 +PACKAGEDIR=/usr/lib/site-python/logilab/common +case "$1" in + configure|abort-upgrade|abort-remove|abort-deconfigure) + python$VERSION -O /usr/lib/python$VERSION/compileall.py -q $PACKAGEDIR + python$VERSION /usr/lib/python$VERSION/compileall.py -q $PACKAGEDIR + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + + +#DEBHELPER# + +exit 0 |