[med-svn] r17883 - trunk/packages/arb/trunk/debian

Elmar Pruesse epruesse-guest at moszumanska.debian.org
Thu Aug 28 18:52:40 UTC 2014


Author: epruesse-guest
Date: 2014-08-28 18:52:40 +0000 (Thu, 28 Aug 2014)
New Revision: 17883

Modified:
   trunk/packages/arb/trunk/debian/arb-common.preinst
Log:
remove old pt servers when upgrading from 5.5


Modified: trunk/packages/arb/trunk/debian/arb-common.preinst
===================================================================
--- trunk/packages/arb/trunk/debian/arb-common.preinst	2014-08-28 18:37:57 UTC (rev 17882)
+++ trunk/packages/arb/trunk/debian/arb-common.preinst	2014-08-28 18:52:40 UTC (rev 17883)
@@ -1,14 +1,16 @@
 #!/bin/sh
 set -e
+set -x
 
-# Reason: When upgrading from a pre-0.0.20050526-4 version a directory
-# /usr/share/arb/lib/nas exists and prevents setting the symlink from
-# the package correctly.  Thus this directory has to be removed first
 
-dirtoremove=/usr/share/arb/lib/nas
-
 case "$1" in
-	upgrade)
+upgrade)
+	case "$2" in
+	pre-0.0*)
+		# Reason: When upgrading from a pre-0.0.20050526-4 version a directory
+		# /usr/share/arb/lib/nas exists and prevents setting the symlink from
+		# the package correctly.  Thus this directory has to be removed first
+		dirtoremove=/usr/share/arb/lib/nas
 		if [ ! -L $dirtoremove ] ; then
 			if [ -d $dirtoremove ] ; then
 				# Just rmdir the directory, if there should be some user
@@ -18,6 +20,14 @@
 			fi
 		fi
 	;;
+	5.5-*)
+		# PT servers from 5.5 are not compatible with 6.x
+		echo "Removing old incompatible PT servers..."
+		rm -fv /var/lib/arb/pts/*.arb /var/lib/arb/pts/*.arb.pt
+		echo "done"
+	;;
+	esac
+;;
 esac
 
 #DEBHELPER#




More information about the debian-med-commit mailing list