preinst is in epiphany-browser 3.18.5-0ubuntu1.
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 | #!/bin/sh
set -e
if [ "$1" = "upgrade" ] && dpkg --compare-versions "$2" lt-nl 2.28.0-2; then
update-alternatives --remove-all epiphany-browser 2> /dev/null || true
fi
if [ "$1" = "upgrade" ] && dpkg --compare-versions "$2" lt-nl 2.29.3-2; then
for alt in x-www-browser gnome-www-browser; do
update-alternatives --remove $alt /usr/bin/epiphany 2> /dev/null || true
done
fi
dpkg-divert --remove --rename --package epiphany-webkit /usr/bin/epiphany 2> /dev/null
dpkg-divert --remove --rename --package epiphany-webkit /usr/share/man/man1/epiphany.1.gz 2> /dev/null
|