summaryrefslogtreecommitdiffstats
path: root/debian/browser.preinst.in
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 09:23:08 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 09:23:08 +0000
commit25161eab0977cf62f77af868be3fc698888776ea (patch)
treeea9037f8066dfc7c0a7d7b898822a56fec71c324 /debian/browser.preinst.in
parentAdding upstream version 110.0.1. (diff)
downloadfirefox-25161eab0977cf62f77af868be3fc698888776ea.tar.xz
firefox-25161eab0977cf62f77af868be3fc698888776ea.zip
Adding debian version 110.0.1-1.debian/110.0.1-1debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/browser.preinst.in')
-rw-r--r--debian/browser.preinst.in12
1 files changed, 12 insertions, 0 deletions
diff --git a/debian/browser.preinst.in b/debian/browser.preinst.in
new file mode 100644
index 0000000000..33f44f5676
--- /dev/null
+++ b/debian/browser.preinst.in
@@ -0,0 +1,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#