[Pkg-samba-maint] r2521 - branches/samba/experimental/debian
jelmer at alioth.debian.org
jelmer at alioth.debian.org
Mon Jan 26 03:31:45 UTC 2009
Author: jelmer
Date: 2009-01-26 03:31:45 +0000 (Mon, 26 Jan 2009)
New Revision: 2521
Modified:
branches/samba/experimental/debian/samba-common.prerm
branches/samba/experimental/debian/samba.prerm
Log:
Fix removal of alternatives.
Modified: branches/samba/experimental/debian/samba-common.prerm
===================================================================
--- branches/samba/experimental/debian/samba-common.prerm 2009-01-26 03:31:38 UTC (rev 2520)
+++ branches/samba/experimental/debian/samba-common.prerm 2009-01-26 03:31:45 UTC (rev 2521)
@@ -2,8 +2,8 @@
set -e
-if [ "$1" = "configure" ]
-then
+case "$1" in
+ remove|upgrade|deconfigure)
update-alternatives --remove nmblookup /usr/bin/nmblookup.samba3
update-alternatives --remove net /usr/bin/net.samba3
update-alternatives --remove testparm /usr/bin/testparm.samba3
@@ -12,7 +12,8 @@
update-alternatives --remove $N /usr/share/samba/$N.samba3
done
update-alternatives --remove samba-panic-action /usr/share/samba/panic-action.samba3
-fi
+ ;;
+esac
#DEBHELPER#
Modified: branches/samba/experimental/debian/samba.prerm
===================================================================
--- branches/samba/experimental/debian/samba.prerm 2009-01-26 03:31:38 UTC (rev 2520)
+++ branches/samba/experimental/debian/samba.prerm 2009-01-26 03:31:45 UTC (rev 2521)
@@ -2,10 +2,11 @@
set -e
-if [ "$1" = "configure" ]
-then
+case "$1" in
+ remove|upgrade|deconfigure)
update-alternatives --remove smbstatus /usr/bin/smbstatus.samba3
-fi
+ ;;
+esac
#DEBHELPER#
More information about the Pkg-samba-maint
mailing list