X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=packaging%2Fdebian%2Fmonkeysphere.prerm;h=1a5135a5e9cdc9418956cda090876083878972c7;hb=34ee2c761045becff8f78a64e70aff3e6ade2617;hp=00523a11044a63a45acde2fcd820b74ed4afeee3;hpb=d39039bbc33b3f6cff881114b7accd3e7cffdc94;p=monkeysphere.git diff --git a/packaging/debian/monkeysphere.prerm b/packaging/debian/monkeysphere.prerm index 00523a1..1a5135a 100755 --- a/packaging/debian/monkeysphere.prerm +++ b/packaging/debian/monkeysphere.prerm @@ -2,15 +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 -rmdir --ignore-fail-on-non-empty "$VARLIB"/gnupg-host -rmdir --ignore-fail-on-non-empty "$VARLIB"/gnupg-authentication +set -e + +case "$1" in + upgrade) + if dpkg --compare-versions "$2" lt 0.23 ; then + cat >&2 <