Hi,

On Tue, Aug 14, 2012 at 06:44:08PM +0200, Rene Engelhard wrote:
> sync_extensions() {
>   INSTDIR=`mktemp -d`
>   export PYTHONPATH="/@OODIR@/program"
>   if [ -L /usr/lib/libreoffice/basis-link ]; then
>         d=/var/lib/libreoffice/`readlink /usr/lib/libreoffice/basis-link`/
>   else
>         d=/usr/lib/libreoffice
>   fi
>   if HOME=$INSTDIR /usr/lib/libreoffice/program/unopkg list --bundled 
> >/dev/null 2>/dev/null; then
>     if [ -e /usr/lib/libreoffice/share/prereg/bundled ] && readlink 
> /usr/lib/libreoffice/share/prereg/bundled 2>&1 >/dev/null && [ -L $d/ure-link 
> ]; then
>       HOME=$INSTDIR \
>         /usr/lib/libreoffice/program/unopkg sync -v --bundled \
>         
> "-env:BUNDLED_EXTENSIONS_USER=file:///usr/lib/libreoffice/share/prereg/bundled"
>  \
>         "-env:UserInstallation=file://$INSTDIR" \
>         
> "-env:UNO_JAVA_JFW_INSTALL_DATA=file://$d/share/config/javasettingsunopkginstall.xml"
>  \
>         "-env:JFW_PLUGIN_DO_NOT_CHECK_ACCESSIBILITY=1"
>     fi
>   fi
>   rm -rf $INSTDIR
> }
> 
> Note setting INSTDIR and the HOME=$INSTDIR's....
> 
> If you wanted to keep your maintainer scripts you need to do it the same way 
> as above.
> 
> BUT better (and this is what almost all extensions INCLUDING voikko do since 
> loooong before you packaged this)
> is to unpack the extension into /usr/lib/libreoffice/share/extensions and do 
> nothing (libreoffice-common has triggers
> which call the above). This new path and unpacked contents is a feature since 
> OOo 3.3 iirc....

And note that even that sync_extensions is not needed anymore in 3.6.1
as I just learned - and that javasettingsunopkginstall.xml is gone.

One more reason to migrate to the "unpacked" scenario because then you don't
need *any* maintainer scipts here anymore.

Regards,
 
Rene


-- 
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