summaryrefslogtreecommitdiffstats
path: root/debian/libreoffice-common.preinst.in
diff options
context:
space:
mode:
Diffstat (limited to 'debian/libreoffice-common.preinst.in')
-rw-r--r--debian/libreoffice-common.preinst.in12
1 files changed, 12 insertions, 0 deletions
diff --git a/debian/libreoffice-common.preinst.in b/debian/libreoffice-common.preinst.in
new file mode 100644
index 000000000..d1a322c06
--- /dev/null
+++ b/debian/libreoffice-common.preinst.in
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+set -e
+
+# fix up broken 0 byte file, should be a dir
+if [ "$1" = "upgrade" ] && dpkg --compare-versions "$2" lt-nl "1:7.4.1~rc1-3"; then
+ if [ -f /@OODIR@/share/extensions -a ! -s /@OODIR@/share/extensions ]; then
+ rm /@OODIR@/share/extensions
+ fi
+fi
+
+#DEBHELPER#