preinst 553 B

12345678910111213141516171819
  1. #!/bin/sh
  2. set -e
  3. if [ "$1" = "upgrade" ] && dpkg --compare-versions "$2" lt "0.8"; then
  4. # Do not do debconf stuff if debconf is not there.
  5. # I don't want to have to pre-depend on debconf.
  6. if [ -e /usr/share/debconf/confmodule ]; then
  7. . /usr/share/debconf/confmodule
  8. db_get isync/upgrade_0.8
  9. if [ "$RET" = true ]; then
  10. echo "Aborting isync upgrade at your request so you can manually resolve upgrade issue." >&2
  11. exit 1
  12. fi
  13. else
  14. echo "WARNING: Read NEWS.Debian file about manual upgrade issues from isync 0.7." >&2
  15. fi
  16. fi
  17. #DEBHELPER#