X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=packaging%2Fdebian%2Fmonkeysphere.prerm;h=1a5135a5e9cdc9418956cda090876083878972c7;hb=4d3d6d2b49d21e5e1ed0b0d3e32d21f99b0e2588;hp=433a0aa123b7345b87bbd14a2d719e3e462c3e54;hpb=4dce7a981d0bb27c2c69f4f756a48f9afd4ea04f;p=monkeysphere.git diff --git a/packaging/debian/monkeysphere.prerm b/packaging/debian/monkeysphere.prerm index 433a0aa..1a5135a 100755 --- a/packaging/debian/monkeysphere.prerm +++ b/packaging/debian/monkeysphere.prerm @@ -2,13 +2,31 @@ # prerm script for monkeysphere -# Author: Jameson Rollins -# Copyright 2008 +# the only thing we're doing here is making sure that the local +# administrator is not trying to downgrade to a version below 0.23, +# since there was such a major reorganization of system data during +# the transition to 0.23. -VARLIB="/var/lib/monkeysphere" +# Author: Daniel Kahn Gillmor +# Copyright 2009 -rm -f "$VARLIB"/gnupg-host/gpg.conf -rm -f "$VARLIB"/gnupg-authentication/gpg.conf +set -e + +case "$1" in + upgrade) + if dpkg --compare-versions "$2" lt 0.23 ; then + cat >&2 <