Remove libc6-dev to enable mysql upgrade.
authorValentin Vidic <Valentin.Vidic@CARNet.hr>
Thu, 7 Nov 2013 09:45:30 +0000 (10:45 +0100)
committerValentin Vidic <Valentin.Vidic@CARNet.hr>
Thu, 7 Nov 2013 09:45:30 +0000 (10:45 +0100)
src/functions.sh

index 76e1eff..d783133 100644 (file)
@@ -888,6 +888,11 @@ upgrade_amavis () {
 
 # handle mysql 5.0 to 5.1 upgrade
 upgrade_mysql () {
+  # libc6-dev prevents mysql upgrade
+  if pkg libc6-dev; then
+     pkgrm libc6-dev
+  fi
+
   if pkg mysql-server || pkg mysql-server-5.1; then
      pkgadd mysql-server
      dpkg -P mysql-server-5.1