Sophie

Sophie

distrib > Mandriva > 2009.1 > x86_64 > media > main-release > by-pkgid > 86c93891757982972c963336f41f0985 > scriptlet

geronimo-jaxr-1.0-api-1.1-4.0.9mdv2009.0.noarch.rpm

PREUN

/bin/sh
if [ "$1" = "0" ]; then
    /usr/sbin/update-alternatives --remove jaxr /usr/share/java/geronimo-jaxr-1.0-api.jar
fi

POSTIN

/bin/sh
/usr/sbin/update-alternatives --install /usr/share/java/jaxr.jar jaxr /usr/share/java/geronimo-jaxr-1.0-api.jar 10000

Triggers

jaxr-api <= 0:1.0-1jpp

/bin/sh
# Remove file from old non-free packages
rm -f /usr/share/java/jaxr.jar
# Recreate the link as update-alternatives could not do it
ln -s /etc/alternatives/jaxr /usr/share/java/jaxr.jar