[med-svn] [metaphlan2-data] 01/02: Remove data files also on package remove
Andreas Tille
tille at debian.org
Tue Oct 18 15:15:52 UTC 2016
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 <tille at 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
More information about the debian-med-commit
mailing list