[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[libreoffice] 01/01: re-add libreoffice-base postrm/preinst



This is an automated email from the git hooks/post-receive script.

rene pushed a commit to branch debian-experimental-4.3
in repository libreoffice.

commit 18de654fc80c72e7429306d2b6cfe1ab44e301d1
Author: Rene Engelhard <rene@debian.org>
Date:   Sat Jun 14 21:47:22 2014 +0200

    re-add libreoffice-base postrm/preinst
---
 libreoffice-base.postrm.in  | 18 ++++++++++++++++++
 libreoffice-base.preinst.in | 18 ++++++++++++++++++
 2 files changed, 36 insertions(+)

diff --git a/libreoffice-base.postrm.in b/libreoffice-base.postrm.in
new file mode 100644
index 0000000..88042b2
--- /dev/null
+++ b/libreoffice-base.postrm.in
@@ -0,0 +1,18 @@
+#!/bin/sh
+
+set -e
+
+#INCLUDE_SHELL_LIB#
+
+if [ "$1" = "remove" ]; then
+	dpkg-divert --package $DPKG_MAINTSCRIPT_PACKAGE --remove --rename \
+		--divert /usr/lib/libreoffice/share/basic/dialog.xlc.noaccess \
+                        /usr/lib/libreoffice/share/basic/dialog.xlc
+	dpkg-divert --package $DPKG_MAINTSCRIPT_PACKAGE --remove --rename \
+		--divert /usr/lib/libreoffice/share/basic/script.xlc.noaccess \
+                        /usr/lib/libreoffice/share/basic/script.xlc
+fi
+
+#DEBHELPER#
+
+exit 0
diff --git a/libreoffice-base.preinst.in b/libreoffice-base.preinst.in
new file mode 100644
index 0000000..d2e5b4c
--- /dev/null
+++ b/libreoffice-base.preinst.in
@@ -0,0 +1,18 @@
+#!/bin/sh
+
+set -e
+
+#INCLUDE_SHELL_LIB#
+
+if [ upgrade != "$1" ] || dpkg --compare-versions "$2" lt 1:4.2.5~rc1-1; then
+	dpkg-divert --package $DPKG_MAINTSCRIPT_PACKAGE --add --rename \
+		--divert /usr/lib/libreoffice/share/basic/dialog.xlc.noaccess \
+			/usr/lib/libreoffice/share/basic/dialog.xlc
+	dpkg-divert --package $DPKG_MAINTSCRIPT_PACKAGE --add --rename \
+		--divert /usr/lib/libreoffice/share/basic/script.xlc.noaccess \
+			/usr/lib/libreoffice/share/basic/script.xlc
+fi
+
+#DEBHELPER#
+
+exit 0

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-openoffice/libreoffice.git


Reply to: