[Piuparts-devel] piuparts problems (leftover files) in LibreOffice packages and addons

Rene Engelhard rene at debian.org
Tue Apr 24 20:27:28 UTC 2012


On Tue, Apr 24, 2012 at 10:06:55PM +0200, Rene Engelhard wrote:
> # t=`mktemp -q -d` && HOME=$t unopkg sync -v --bundled && rm -rf $t

Which *should* have been there since ages:

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

Ah, well...

diff --git a/shell-lib-extensions.sh b/shell-lib-extensions.sh
index 652efd8..c0e74bd 100644
--- a/shell-lib-extensions.sh
+++ b/shell-lib-extensions.sh
@@ -14,11 +14,13 @@ sync_extensions() {
   fi
   if /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
-      /usr/lib/libreoffice/program/unopkg sync -v --bundled \
+      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"
+      rm -rf $INSTDIR
     fi
   fi
 }

shouldn't make it worse... (But will talk with upstream.)

Regards,
  
Rene



More information about the Piuparts-devel mailing list