From 20a80177405868078e18dd13ee32b90758ed4813 Mon Sep 17 00:00:00 2001 From: Andreas Tille Date: Tue, 11 Feb 2014 17:47:14 +0100 Subject: [PATCH] Make sure we can purge the package properly --- .../{python-pysam-tests.postrm => python-pysam-tests.prerm} | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) rename debian/{python-pysam-tests.postrm => python-pysam-tests.prerm} (65%) diff --git a/debian/python-pysam-tests.postrm b/debian/python-pysam-tests.prerm similarity index 65% rename from debian/python-pysam-tests.postrm rename to debian/python-pysam-tests.prerm index d11fc7c..6c79f5d 100644 --- a/debian/python-pysam-tests.postrm +++ b/debian/python-pysam-tests.prerm @@ -4,7 +4,9 @@ set -e case "$1" in purge|remove|upgrade) - rm -rf /var/lib/pysam/tests + 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) ;; -- 2.30.2