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 <[email protected]>
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

_______________________________________________
debian-med-commit mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/debian-med-commit

Reply via email to