From: Andreas Tille Date: Tue, 11 Feb 2014 16:47:14 +0000 (+0100) Subject: Make sure we can purge the package properly X-Git-Tag: archive/raspbian/0.22.0+ds-1+rpi1~1^2^2~404 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=20a80177405868078e18dd13ee32b90758ed4813;p=python-pysam.git Make sure we can purge the package properly --- diff --git a/debian/python-pysam-tests.postrm b/debian/python-pysam-tests.postrm deleted file mode 100644 index d11fc7c..0000000 --- a/debian/python-pysam-tests.postrm +++ /dev/null @@ -1,20 +0,0 @@ -#!/bin/sh - -set -e - -case "$1" in - purge|remove|upgrade) - rm -rf /var/lib/pysam/tests - ;; - failed-upgrade|abort-install|abort-upgrade|disappear) - ;; - - *) - echo "postrm called with unknown argument \`$1'" >&2 - exit 1 - ;; -esac - -#DEBHELPER# - -exit 0 diff --git a/debian/python-pysam-tests.prerm b/debian/python-pysam-tests.prerm new file mode 100644 index 0000000..6c79f5d --- /dev/null +++ b/debian/python-pysam-tests.prerm @@ -0,0 +1,22 @@ +#!/bin/sh + +set -e + +case "$1" in + purge|remove|upgrade) + if [ -e /var/lib/pysam/tests/Makefile ] ; then + cd /var/lib/pysam/tests; make clean; rm -f log.txt + fi + ;; + failed-upgrade|abort-install|abort-upgrade|disappear) + ;; + + *) + echo "postrm called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +#DEBHELPER# + +exit 0