summaryrefslogtreecommitdiffstats
path: root/debian/browser.preinst.in
blob: 33f44f5676768605722134ccd3c16da19871e039 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh -e

if [ "$1" = "upgrade" ] || [ "$1" = "install" ] ; then
%if TRANSITION
    if [ "$(dpkg-divert --listpackage /usr/bin/firefox)" = "iceweasel" ] ; then
        dpkg-divert --package iceweasel --rename --remove /usr/bin/firefox
    fi
%endif
    dpkg-divert --package @browser@ --divert /usr/bin/firefox.real --rename /usr/bin/firefox
fi

#DEBHELPER#