postinst is in bitpim-lib 1.0.7+dfsg1-2build1.
This file is a maintainer script. It is executed when installing (*inst) or removing (*rm) the package.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | #!/bin/sh
set -e
# Automatically added by dh_pysupport
if which update-python-modules >/dev/null 2>&1; then
update-python-modules bitpim-lib.private
fi
# End automatically added section
# Standard tools just arrange to produce unoptimized .pyc files; ensure
# that we also have optimized .pyo files for better performance.
# (Compile with -Wignore per #358023, and cover /usr/share/bitpim/code
# in addition to /usr/lib/bitpim to ensure that bitpim's .pyo files
# will remain valid when the default Python version changes.)
if test -x /usr/bin/pyversions; then
PYTHON=`pyversions -d`
else
PYTHON=python2.3
fi
if which $PYTHON >/dev/null 2>&1 && [ -e /usr/lib/$PYTHON/compileall.py ]; then
for d in /usr/lib/bitpim /usr/share/bitpim/code; do
test -d $d && $PYTHON -OO -Wignore /usr/lib/$PYTHON/compileall.py -q $d
done
fi
exit 0
|