[med-svn] r6405 - trunk/packages/gbrowse/trunk/debian
olivier sallou
osallou-guest at alioth.debian.org
Wed Mar 30 12:38:30 UTC 2011
Author: osallou-guest
Date: 2011-03-30 12:38:24 +0000 (Wed, 30 Mar 2011)
New Revision: 6405
Modified:
trunk/packages/gbrowse/trunk/debian/postinst
trunk/packages/gbrowse/trunk/debian/postrm
Log:
update scripts to accept arguments
Modified: trunk/packages/gbrowse/trunk/debian/postinst
===================================================================
--- trunk/packages/gbrowse/trunk/debian/postinst 2011-03-30 12:15:08 UTC (rev 6404)
+++ trunk/packages/gbrowse/trunk/debian/postinst 2011-03-30 12:38:24 UTC (rev 6405)
@@ -5,8 +5,8 @@
# Source debconf library.
. /usr/share/debconf/confmodule
-#DEBHELPER#
-
+case "$1" in
+ configure)
if [ -e /var/cache/gbrowse2 ]
then
echo "Dir already present, skip it"
@@ -36,4 +36,17 @@
fi
update-rc.d gbrowse-slave defaults
+ ;;
+ abort-upgrade|abort-remove|abort-deconfigure)
+ ;;
+
+ *)
+ echo "postinst called with unknown argument \`$1'" >&2
+ exit 1
+ ;;
+esac
+
+
+#DEBHELPER#
+
Modified: trunk/packages/gbrowse/trunk/debian/postrm
===================================================================
--- trunk/packages/gbrowse/trunk/debian/postrm 2011-03-30 12:15:08 UTC (rev 6404)
+++ trunk/packages/gbrowse/trunk/debian/postrm 2011-03-30 12:38:24 UTC (rev 6405)
@@ -5,8 +5,8 @@
# Source debconf library.
. /usr/share/debconf/confmodule
-#DEBHELPER#
-
+case "$1" in
+ purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
rm -rf /var/cache/gbrowse2
if [ -e /etc/apache2/conf.d/gbrowse2 ]
@@ -30,3 +30,15 @@
rm /etc/default/gbrowse-slave
fi
fi
+
+ ;;
+
+ *)
+ echo "postrm called with unknown argument \`$1'" >&2
+ exit 1
+ ;;
+esac
+
+
+#DEBHELPER#
+
More information about the debian-med-commit
mailing list