summaryrefslogtreecommitdiff
path: root/packaging/debian/monkeysphere.prerm
blob: 1a5135a5e9cdc9418956cda090876083878972c7 (plain)
  1. #!/bin/sh -e
  2. # prerm script for monkeysphere
  3. # the only thing we're doing here is making sure that the local
  4. # administrator is not trying to downgrade to a version below 0.23,
  5. # since there was such a major reorganization of system data during
  6. # the transition to 0.23.
  7. # Author: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
  8. # Copyright 2009
  9. set -e
  10. case "$1" in
  11. upgrade)
  12. if dpkg --compare-versions "$2" lt 0.23 ; then
  13. cat >&2 <<EOF
  14. Downgrading the monkeysphere to a version earlier than 0.23 can have
  15. BAD CONSEQUENCES, including potentially locking you out of the system.
  16. Downgrading in this fashion is NOT SUPPORTED.
  17. EOF
  18. exit 1
  19. fi
  20. ;;
  21. esac
  22. # dh_installdeb will replace this with shell code automatically
  23. # generated by other debhelper scripts.
  24. #DEBHELPER#
  25. exit 0