You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
311 B

#!/bin/sh
set -e
LIB_DIR=/var/lib/repoapi
case "$1" in
install|upgrade)
if dpkg --compare-versions "$2" le "0.4.7"; then
rm -rf "${LIB_DIR}/venv_prod"
fi
;;
abort-upgrade)
;;
*)
echo "preinst called with unknown argument '$1'" >&2
exit 1
;;
esac
#DEBHELPER#
exit 0