On Sun, Jul 10, 2011 at 05:04:45PM -0500, Jonathan Nieder wrote:
> diff --git i/libreoffice-common.postinst.in w/libreoffice-common.postinst.in
> index 56b9edce..03aea359 100644
> --- i/libreoffice-common.postinst.in
> +++ w/libreoffice-common.postinst.in
> @@ -36,10 +36,10 @@ if [ "$1" = "configure" ]; then
>       rmdir /etc/openoffice 2>/dev/null || true
>  
>       if dpkg --compare-versions "$2" lt "1:3.3.0-3"; then
> -             sync_extensions
> +             dpkg-trigger "/@OOBRANDDIR@/share/extensions"
>       fi
>       if dpkg --compare-versions "$2" lt "1:3.4.0-1"; then
> -             update_services_rdb
> +             dpkg-trigger "/@OOBASISDIR@/registered-components"
>       fi
>  fi

Pushed.

> diff --git i/libreoffice-core.postinst.in w/libreoffice-core.postinst.in
> index e69de29b..cbf8ec59 100644
> --- i/libreoffice-core.postinst.in
> +++ w/libreoffice-core.postinst.in
> @@ -0,0 +1,13 @@
> +#!/bin/sh
> +
> +set -e
> +
> +if [ "$1" = "configure" ]; then
> +     if dpkg --compare-versions "$2" lt "1:3.4.0-1"; then
> +             dpkg-trigger /@@OOBASISDIR@/registered-components
> +     fi
> +fi
> +
> +#DEBHELPER#
> +
> +exit 0

Left out for now.

> diff --git i/shell-lib-components.sh w/shell-lib-components.sh
> index 06f48161..d5224345 100644
> --- i/shell-lib-components.sh
> +++ w/shell-lib-components.sh
> @@ -42,6 +42,11 @@ register_to_services_rdb() {
>  }
>  
>  update_services_rdb() {
> +     if ! [ -e /@OOBASISDIR@/program/.services.rdb ]; then
> +             # Wait for libreoffice-core 3.4.0 to be unpacked.
> +             return
> +     fi
> +
>       echo "Updating services.rdb..."
>       rdb="`echo /@OOBASISDIR@/program | sed -e s/usr/var/`/services.rdb"
>       if [ -d /@OOBASISDIR@/registered-components ]; then

Pushed. (My initial version.)

Grüße/Regards,

René



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to