summaryrefslogtreecommitdiffstats
path: root/debian/libreoffice-base.preinst.in
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-15 05:55:35 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-15 05:55:35 +0000
commit0e05dd0e4d67d88ca51780dafe4029744269e6fa (patch)
treeb49073fa569d8d4fbcc7002cf4df72fa840780c1 /debian/libreoffice-base.preinst.in
parentAdding upstream version 4:24.2.0. (diff)
downloadlibreoffice-0e05dd0e4d67d88ca51780dafe4029744269e6fa.tar.xz
libreoffice-0e05dd0e4d67d88ca51780dafe4029744269e6fa.zip
Adding debian version 4:24.2.0-1.debian/4%24.2.0-1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/libreoffice-base.preinst.in')
-rw-r--r--debian/libreoffice-base.preinst.in21
1 files changed, 21 insertions, 0 deletions
diff --git a/debian/libreoffice-base.preinst.in b/debian/libreoffice-base.preinst.in
new file mode 100644
index 0000000000..08ab83ab0b
--- /dev/null
+++ b/debian/libreoffice-base.preinst.in
@@ -0,0 +1,21 @@
+#!/bin/sh
+
+set -e
+
+#INCLUDE_SHELL_LIB#
+
+if [ upgrade = "$1" ] || dpkg --compare-versions "$2" lt 1:6.4.0~beta1-2; then
+ dpkg-divert --remove --no-rename \
+ --divert /usr/lib/libreoffice/share/basic/dialog.xlc.noaccess \
+ /usr/lib/libreoffice/share/basic/dialog.xlc
+ dpkg-divert --remove --no-rename \
+ --divert /usr/lib/libreoffice/share/basic/script.xlc.noaccess \
+ /usr/lib/libreoffice/share/basic/script.xlc
+ # cleanup
+ rm -f /usr/lib/libreoffice/share/basic/script.xlc.noaccess
+ rm -f /usr/lib/libreoffice/share/basic/dialog.xlc.noaccess
+fi
+
+#DEBHELPER#
+
+exit 0