From: Daniel Kahn Gillmor Date: Mon, 2 Mar 2009 19:17:35 +0000 (-0500) Subject: added a prerm script to explicitly fail if someone attempts to downgrade to anything... X-Git-Tag: monkeysphere_0.24~13^2~1 X-Git-Url: https://codewiz.org/gitweb?p=monkeysphere.git;a=commitdiff_plain;h=d86b79c54bca47211511fc18f3d626cf3b30fcb1 added a prerm script to explicitly fail if someone attempts to downgrade to anything before 0.23 --- diff --git a/packaging/debian/monkeysphere.prerm b/packaging/debian/monkeysphere.prerm new file mode 100755 index 0000000..1a5135a --- /dev/null +++ b/packaging/debian/monkeysphere.prerm @@ -0,0 +1,36 @@ +#!/bin/sh -e + +# prerm script for monkeysphere + +# 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. + +# Author: Daniel Kahn Gillmor +# Copyright 2009 + +set -e + +case "$1" in + upgrade) + if dpkg --compare-versions "$2" lt 0.23 ; then + cat >&2 <