Sophie

Sophie

distrib > CentOS > 6 > i386 > by-pkgid > 661abffd5a193f73c131fd30c90e2021 > scriptlet

openoffice.org-pyuno-3.2.1-19.6.el6_0.5.i686.rpm

PREIN

/bin/sh
if [ $1 -gt 1 ]; then
    # Upgrade => deregister old extension
    unopkg remove --shared org.openoffice.legacy.ScriptProviderForPython.zip > /dev/null 2>&1 || :
fi

PREUN

/bin/sh
if [ $1 -eq 0 ]; then
    # not upgrading => deregister
    unopkg remove --shared org.openoffice.legacy.ScriptProviderForPython.zip > /dev/null 2>&1 || :
fi

POSTIN

/bin/sh
    # register extension
    unopkg add --shared --force --link /usr/share/openoffice.org/extensions/ScriptProviderForPython.zip > /dev/null 2>&1 || :

POSTUN

/bin/sh
    # clear disk cache
    unopkg list --shared > /dev/null 2>&1 || :