preinst is in xul-ext-iceweasel-branding 0.4.0.
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 | #!/bin/sh -e
package=xul-ext-iceweasel-branding
if [ "$1" = "upgrade" ] || [ "$1" = "install" ] ; then
dpkg-divert --package "$package" --divert /usr/share/applications/iceweasel.desktop.diverted --rename /usr/share/applications/iceweasel.desktop
dpkg-divert --package "$package" --divert /usr/share/applications/firefox-esr.desktop.diverted --rename /usr/share/applications/firefox-esr.desktop
fi
|