postinst is in python-dbus 1.0.0-1ubuntu1.
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 | #!/bin/sh
set -e
if [ "$1" = "configure" ] && dpkg --compare-versions "$2" lt "0.71-3"; then
echo "Remove stale byte-compiled files..."
rm -f /usr/lib/python2.[45]/site-packages/dbus.pyc
rm -f /usr/lib/python2.[45]/site-packages/dbus.pyo
rm -f /usr/lib/python2.[45]/site-packages/dbus/*.pyc
rm -f /usr/lib/python2.[45]/site-packages/dbus/*.pyo
for v in 2.4 2.5; do
if [ -e /usr/lib/python${v}/site-packages/dbus ]; then
rmdir --ignore-fail-on-non-empty \
/usr/lib/python${v}/site-packages/dbus
fi
done
fi
# Automatically added by dh_python2:
if which pycompile >/dev/null 2>&1; then
pycompile -p python-dbus
fi
# End automatically added section
|