summaryrefslogtreecommitdiffstats
path: root/debian/libreoffice-base.preinst.in
blob: 08ab83ab0ba75dad745f08ba3543c82b39cb342e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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