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

tille pushed a commit to branch master
in repository metaphlan2-data.

commit c8e86c50697ded2a6278f18eb8dded3f10f07509
Author: Andreas Tille <ti...@debian.org>
Date:   Tue Oct 18 17:02:35 2016 +0200

    Remove data files also on package remove
---
 debian/postrm | 13 +++++++++----
 1 file changed, 9 insertions(+), 4 deletions(-)

diff --git a/debian/postrm b/debian/postrm
index c2a3112..3a73e55 100644
--- a/debian/postrm
+++ b/debian/postrm
@@ -2,9 +2,16 @@
 
 set -e
 
+if [ "$1" = "remove" ] ; then
+    # remove files created in postinst
+    rm -rf /usr/share/metaphlan2/db_v20/*.bt2
+fi
+
 # purge the config file which is created in the postinst script
-if [ "$1" = purge ] ; then
-        rm -f /etc/metaphlan2/metaphlan2-data.conf
+if [ "$1" = "purge" ] ; then
+    rm -f /etc/metaphlan2/metaphlan2-data.conf
+    # remove files created in postinst
+    rm -rf /usr/share/metaphlan2/db_v20/*.bt2
 fi
 
 if [ "$1" = "purge" ] && [ -e /usr/share/debconf/confmodule ]; then
@@ -12,8 +19,6 @@ if [ "$1" = "purge" ] && [ -e /usr/share/debconf/confmodule 
]; then
     . /usr/share/debconf/confmodule
     # Remove my changes to the db.
     db_purge
-    # remove files created in postinst
-    rm -rf /usr/share/metaphlan2/db_v20/*.bt2
 fi
 
 #DEBHELPER#

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

_______________________________________________
debian-med-commit mailing list
debian-med-commit@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/debian-med-commit

Reply via email to