postinst is in ruby-qt4 4:4.14.3-1ubuntu2.
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 | #!/bin/sh
set -e
# clean up obsolete diversions dating back to libqt4-ruby1.8/lenny
# perform the cleanup here in the "successor" ruby-qt4 since the
# transitional package libqt4-ruby1.8 may already have been removed
if [ "$1" = "configure" ]; then
if [ -n "$(dpkg-divert --listpackage /usr/bin/rbqtapi)" ]; then
dpkg-divert --remove --rename --package libqt4-ruby1.8 \
--divert /usr/bin/rbqtapi.qt3 /usr/bin/rbqtapi
fi
if [ -n "$(dpkg-divert --listpackage /usr/share/man/man1/rbqtapi.1.gz)" ]; then
dpkg-divert --remove --rename --package libqt4-ruby1.8 \
--divert /usr/share/man/man1/rbqtapi.qt3.1.gz \
/usr/share/man/man1/rbqtapi.1.gz
fi
fi
|