source: firefox-esr/trunk/fuentes/debian/firefox-esr.postinst @ 6479

Last change on this file since 6479 was 6479, checked in by Juanma, 3 years ago

add postinst to dismiss divert of older versions

File size: 541 bytes
Line 
1# Firefox ESR
2ORIG_FILE="/usr/bin/firefox"
3OUR_PACKAGE="firefox-esr"
4
5#From version>52.5 the divert is not required, we disable it if exists on the system
6case $1 in
7        configure)
8                        if dpkg --compare-versions "$2" lt 52.5; then
9                                if [ -f ${ORIG_FILE}.real ] ; then
10                                        rm -f ${ORIG_FILE}
11                                        dpkg-divert --package  ${OUR_PACKAGE} --rename --quiet --remove ${ORIG_FILE}|| true
12                                fi
13                        fi
14               
15                ;;
16        *)
17                echo "Nothing to do"
18                ;;
19esac
20
21# Other Stuff #
22
23#DEBHELPER#
24
Note: See TracBrowser for help on using the repository browser.