tags 679717 + patch
tags 679717 + pending
thanks

Dear maintainer,

I've prepared an NMU for accessodf (versioned as 0.1-1.2) and
uploaded it to DELAYED/5. Please feel free to tell me if I
should delay it longer.

Regards,

Rene
diff -Nru accessodf-0.1/debian/changelog accessodf-0.1/debian/changelog
--- accessodf-0.1/debian/changelog	2012-06-30 05:29:01.000000000 +0200
+++ accessodf-0.1/debian/changelog	2012-10-23 19:54:19.000000000 +0200
@@ -1,3 +1,11 @@
+accessodf (0.1-1.2) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * set $HOME explicitely in unopkg usage in maintainer scripts
+    (closes: #679717)
+
+ -- Rene Engelhard <r...@debian.org>  Tue, 23 Oct 2012 19:53:57 +0200
+
 accessodf (0.1-1.1) unstable; urgency=low
 
   * Non-maintainer upload.
diff -Nru accessodf-0.1/debian/postinst accessodf-0.1/debian/postinst
--- accessodf-0.1/debian/postinst	2012-04-10 00:36:53.000000000 +0200
+++ accessodf-0.1/debian/postinst	2012-10-23 19:53:33.000000000 +0200
@@ -9,12 +9,12 @@
 
 add_extension() {
     echo -n "Adding extension $1..."
-    #INSTDIR=`mktemp -d`
-    unopkg add --shared $1
-        #"-env:UserInstallation=file:///$INSTDIR" \
-        #'-env:UNO_JAVA_JFW_INSTALL_DATA=$ORIGIN/../share/config/javasettingsunopkginstall.xml' \
-        #"-env:JFW_PLUGIN_DO_NOT_CHECK_ACCESSIBILITY=1"
-    #if [ -n $INSTDIR ]; then rm -rf $INSTDIR; fi
+    INSTDIR=`mktemp -d`
+    HOME=$INSTDIR unopkg add --shared $1 \
+        "-env:UserInstallation=file:///$INSTDIR" \
+        '-env:UNO_JAVA_JFW_INSTALL_DATA=$ORIGIN/../share/config/javasettingsunopkginstall.xml' \
+        "-env:JFW_PLUGIN_DO_NOT_CHECK_ACCESSIBILITY=1"
+    if [ -n $INSTDIR ]; then rm -rf $INSTDIR; fi
     echo " done."
 }
 
diff -Nru accessodf-0.1/debian/preinst accessodf-0.1/debian/preinst
--- accessodf-0.1/debian/preinst	2012-04-10 00:36:53.000000000 +0200
+++ accessodf-0.1/debian/preinst	2012-10-23 19:48:18.000000000 +0200
@@ -7,14 +7,15 @@
 set -e
 
 flush_unopkg_cache() {
-        unopkg list --shared "-env:JFW_PLUGIN_DO_NOT_CHECK_ACCESSIBILITY=1" > /dev/null 2>&1
+	INSTDIR=`mktemp -d`
+        HOME=$INSTDIR unopkg list --shared "-env:JFW_PLUGIN_DO_NOT_CHECK_ACCESSIBILITY=1" > /dev/null 2>&1
 }
 
 remove_extension() {
-  if unopkg list --shared $1 >/dev/null; then
+  INSTDIR=`mktemp -d`
+  if HOME=$INSTDIR unopkg list --shared $1 >/dev/null; then
     echo -n "Removing extension $1..."
-    INSTDIR=`mktemp -d`
-    unopkg remove --shared $1 \
+    HOME=$INSTDIR unopkg remove --shared $1 \
       "-env:UserInstallation=file://$INSTDIR" \
       '-env:UNO_JAVA_JFW_INSTALL_DATA=$ORIGIN/../share/config/javasettingsunopkginstall.xml' \
       "-env:JFW_PLUGIN_DO_NOT_CHECK_ACCESSIBILITY=1"
diff -Nru accessodf-0.1/debian/prerm accessodf-0.1/debian/prerm
--- accessodf-0.1/debian/prerm	2012-04-10 00:36:53.000000000 +0200
+++ accessodf-0.1/debian/prerm	2012-10-23 19:48:44.000000000 +0200
@@ -6,14 +6,14 @@
 set -e
 
 flush_unopkg_cache() {
-    unopkg list --shared "-env:JFW_PLUGIN_DO_NOT_CHECK_ACCESSIBILITY=1" > /dev/null 2>&1
+    HOME=$INSTDIR unopkg list --shared "-env:JFW_PLUGIN_DO_NOT_CHECK_ACCESSIBILITY=1" > /dev/null 2>&1
 }
 
 remove_extension() {
-    if unopkg list --shared $1 >/dev/null; then
+    INSTDIR=`mktemp -d`
+    if HOME=$INSTDIR unopkg list --shared $1 >/dev/null; then
         echo -n "Removing extension $1..."
-        INSTDIR=`mktemp -d`
-        unopkg remove --shared $1 \
+        HOME=$INSTDIR unopkg remove --shared $1 \
         "-env:UserInstallation=file://$INSTDIR" \
         '-env:UNO_JAVA_JFW_INSTALL_DATA=$ORIGIN/../share/config/javasettingsunopkginstall.xml' \
         "-env:JFW_PLUGIN_DO_NOT_CHECK_ACCESSIBILITY=1"

Reply via email to