6 /usr/lib/openoffice/program/unopkg list --shared > /dev/null 2>&1
10 if /usr/lib/openoffice/program/unopkg list --shared $1 >/dev/null; then
11 echo -n "Removing extension $1..."
13 /usr/lib/openoffice/program/unopkg remove --shared $1 \
14 "-env:UserInstallation=file://$INSTDIR" \
15 '-env:UNO_JAVA_JFW_INSTALL_DATA=$OOO_BASE_DIR/share/config/javasettingsunopkginstall.xml' \
16 "-env:JFW_PLUGIN_DO_NOT_CHECK_ACCESSIBILITY=1"
17 if [ -n $INSTDIR ]; then rm -rf $INSTDIR; fi
23 if [ "$1" = "upgrade" ]; then
24 # this is a legacy package, so we need to find it first...
25 id=`/usr/lib/openoffice/program/unopkg list --shared | grep Identifier:.*auf.*reflets | cut -d":" -f2`