[libreoffice] 01/02: add trigger updating LOOLs systemplate and switch to interest-noawait triggers

Rene Engelhard rene at moszumanska.debian.org
Tue Nov 21 22:45:01 UTC 2017


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

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

commit 325bee0718d4ae9e2c1b374405622147bc0b8c33
Author: Rene Engelhard <rene at rene-engelhard.de>
Date:   Tue Nov 21 23:37:19 2017 +0100

    add trigger updating LOOLs systemplate and switch to interest-noawait triggers
---
 changelog                      | 4 ++++
 libreoffice-common.postinst.in | 5 +++++
 libreoffice-common.triggers.in | 3 ++-
 rules                          | 3 +++
 shell-lib-lool.sh              | 5 +++++
 5 files changed, 19 insertions(+), 1 deletion(-)

diff --git a/changelog b/changelog
index f82fa1c..f93169e 100644
--- a/changelog
+++ b/changelog
@@ -2,6 +2,10 @@ libreoffice (1:5.4.4~rc1~git20171119-1) UNRELEASED; urgency=medium
 
   * New upstream snapshot
 
+  * debian/libreoffice-common.{triggers,postinst}.in,
+    debian/shell-lib-lool.sh: add trigger updating LOOLs systemplate
+  * debian/libreoffice-common.triggers.in: switch to interest-noawait triggers
+
  -- Rene Engelhard <rene at debian.org>  Fri, 20 Oct 2017 13:40:01 +0000
 
 libreoffice (1:5.4.3-2) unstable; urgency=medium
diff --git a/libreoffice-common.postinst.in b/libreoffice-common.postinst.in
index 897f046..93c3ed3 100644
--- a/libreoffice-common.postinst.in
+++ b/libreoffice-common.postinst.in
@@ -11,6 +11,11 @@ if [ "$1" = "triggered" ]; then
                         "/@OODIR@/share/extensions")
                           make_lo_sync_extensions
                         ;;
+                        "/@OODIR@")
+                          if [ -d /var/lib/lool/systemplate ]; then
+                            update_lool_systemplate
+                          fi
+                        ;;
                 esac
         done
 fi
diff --git a/libreoffice-common.triggers.in b/libreoffice-common.triggers.in
index c9a446c..2743017 100644
--- a/libreoffice-common.triggers.in
+++ b/libreoffice-common.triggers.in
@@ -1 +1,2 @@
-interest /@OODIR@/share/extensions
+interest-noawait /@OODIR@/share/extensions
+interest-noawait /@OODIR@
diff --git a/rules b/rules
index 7765fca..b67942e 100755
--- a/rules
+++ b/rules
@@ -2541,6 +2541,9 @@ $(STAMP_DIR)/maintscripts: $(wildcard debian/shell-lib*.sh) $(wildcard debian/*.
 	    MAINTSCRIPT=debian/$$PKG.$$FILE ; \
 	    if [ -e $$MAINTSCRIPT.in ]; then \
 	      sed -n '1,/^#INCLUDE_SHELL_LIB#$$/p' < $$MAINTSCRIPT.in | sed -e '/^#INCLUDE_SHELL_LIB#$$/d' > $$MAINTSCRIPT; \
+	      if grep -q "lool" $$MAINTSCRIPT.in; then \
+		cat debian/shell-lib-lool.sh >> $$MAINTSCRIPT; \
+	      fi; \
 	      if egrep -q "(validate_extension|sync_extension)" $$MAINTSCRIPT.in; then \
 		 cat debian/shell-lib-extensions.sh >> $$MAINTSCRIPT; \
 	      fi; \
diff --git a/shell-lib-lool.sh b/shell-lib-lool.sh
new file mode 100644
index 0000000..b0afb77
--- /dev/null
+++ b/shell-lib-lool.sh
@@ -0,0 +1,5 @@
+update_lool_systemplate() {
+        echo -n "Updating LibreOffice Online systemplate... "
+        su lool --shell=/bin/sh -c 'loolwsd-systemplate-setup /var/lib/lool/systemplate /usr/lib/libreoffice >/dev/null 2>&1'
+        echo "done."
+}

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



More information about the Pkg-openoffice-commits mailing list