[med-svn] [pysam] 01/01: Make sure we can purge the package properly

Andreas Tille tille at debian.org
Tue Feb 11 16:42:10 UTC 2014


This is an automated email from the git hooks/post-receive script.

tille pushed a commit to branch master
in repository pysam.

commit 20a80177405868078e18dd13ee32b90758ed4813
Author: Andreas Tille <tille at debian.org>
Date:   Tue Feb 11 17:47:14 2014 +0100

    Make sure we can purge the package properly
---
 debian/{python-pysam-tests.postrm => python-pysam-tests.prerm} | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

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)
     ;;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/pysam.git



More information about the debian-med-commit mailing list