Force downgrade of php4-suhosin to etch version.
authorValentin Vidic <vvidic@carnet.hr>
Mon, 14 Apr 2008 08:49:27 +0000 (10:49 +0200)
committerValentin Vidic <vvidic@carnet.hr>
Mon, 14 Apr 2008 08:49:27 +0000 (10:49 +0200)
src/functions.sh

index 00ae1ff..4775de3 100644 (file)
@@ -641,16 +641,20 @@ upgrade_apache2 () {
       php4-cn \
       apache2-cn \
       php4-odbc \
-      php4-suhosin
+      php4-suhosin \
+      php-suhosin-cn
   do
       if pkg $package; then
           packages="$packages $package"
       fi
   done
 
-  for package in $(echo $packages); do
-      pkgadd $package
-  done
+  # enable suhosin downgrade to etch version
+  if pkg php4-suhosin; then
+      pkgrm php4-suhosin php-suhosin-cn
+  fi
+
+  eval pkgadd $packages
 }
 
 upgrade_amavis () {