z3/debian/libz3-java.preinst

22 lines
375 B
Bash

#!/bin/sh
set -e
case "$1" in
install|upgrade)
# dpkg does not replace directories with symlinks.
if dpkg --compare-versions "$2" lt "4.4.0-3" ; then
rm -rf /usr/share/doc/libz3-java
fi
;;
abort-upgrade)
;;
*)
echo "preinst called with unknown argument \`$1'" >&2
exit 1
;;
esac
#DEBHELPER#
exit 0