[Pkg-samba-maint] r2520 - trunk/samba4/debian
jelmer at alioth.debian.org
jelmer at alioth.debian.org
Mon Jan 26 03:31:38 UTC 2009
Author: jelmer
Date: 2009-01-26 03:31:38 +0000 (Mon, 26 Jan 2009)
New Revision: 2520
Modified:
trunk/samba4/debian/samba4-clients.prerm
trunk/samba4/debian/samba4-common.prerm
trunk/samba4/debian/samba4.prerm
Log:
Fix removal of alternatives.
Modified: trunk/samba4/debian/samba4-clients.prerm
===================================================================
--- trunk/samba4/debian/samba4-clients.prerm 2009-01-26 02:15:23 UTC (rev 2519)
+++ trunk/samba4/debian/samba4-clients.prerm 2009-01-26 03:31:38 UTC (rev 2520)
@@ -2,11 +2,12 @@
set -e
-if [ "$1" = "configure" ]
-then
- update-alternatives --remove nmblookup /usr/bin/nmblookup.samba4
- update-alternatives --remove net /usr/bin/net.samba4
-fi
+case "$1" in
+ remove|upgrade|deconfigure)
+ update-alternatives --remove nmblookup /usr/bin/nmblookup.samba4
+ update-alternatives --remove net /usr/bin/net.samba4
+ ;;
+esac
#DEBHELPER#
Modified: trunk/samba4/debian/samba4-common.prerm
===================================================================
--- trunk/samba4/debian/samba4-common.prerm 2009-01-26 02:15:23 UTC (rev 2519)
+++ trunk/samba4/debian/samba4-common.prerm 2009-01-26 03:31:38 UTC (rev 2520)
@@ -2,14 +2,16 @@
set -e
-if [ "$1" = "configure" ]; then
- for N in upcase.dat valid.dat lowcase.dat
- do
- update-alternatives --remove $N /usr/share/samba/$N.samba4
- done
- update-alternatives --remove samba-panic-action /usr/share/samba/panic-action.samba4
- update-alternatives --remove testparm /usr/bin/testparm.samba4
-fi
+case "$1" in
+ remove|upgrade|deconfigure)
+ for N in upcase.dat valid.dat lowcase.dat
+ do
+ update-alternatives --remove $N /usr/share/samba/$N.samba4
+ done
+ update-alternatives --remove samba-panic-action /usr/share/samba/panic-action.samba4
+ update-alternatives --remove testparm /usr/bin/testparm.samba4
+ ;;
+esac
#DEBHELPER#
Modified: trunk/samba4/debian/samba4.prerm
===================================================================
--- trunk/samba4/debian/samba4.prerm 2009-01-26 02:15:23 UTC (rev 2519)
+++ trunk/samba4/debian/samba4.prerm 2009-01-26 03:31:38 UTC (rev 2520)
@@ -2,9 +2,11 @@
set -e
-if [ "$1" = "configure" ]; then
- update-alternatives --remove smbstatus /usr/bin/smbstatus.samba4
-fi
+case "$1" in
+ remove|upgrade|deconfigure)
+ update-alternatives --remove smbstatus /usr/bin/smbstatus.samba4
+ ;;
+esac
#DEBHELPER#
More information about the Pkg-samba-maint
mailing list