[arch-commits] CVS update of extra/devel/php (php.install)

Pierre Schmitz pierre at archlinux.org
Sat Sep 22 17:22:03 UTC 2007


    Date: Saturday, September 22, 2007 @ 13:22:03
  Author: pierre
    Path: /home/cvs-extra/extra/devel/php

Modified: php.install (1.7 -> 1.8)

added some comments


-------------+
 php.install |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)


Index: extra/devel/php/php.install
diff -u extra/devel/php/php.install:1.7 extra/devel/php/php.install:1.8
--- extra/devel/php/php.install:1.7	Sat Sep 22 13:06:08 2007
+++ extra/devel/php/php.install	Sat Sep 22 13:22:03 2007
@@ -33,6 +33,8 @@
 }
 
 pre_upgrade() {
+  # we moved php.ini from /etc/ to /etc/php
+  # lets save the old file before pacman deletes it
   if [ -f /etc/php.ini ] && [ $(vercmp '5.2.4-2' $2) -ge 0 ];then
     mv /etc/php.ini /etc/php.ini.pacsave.tmp
   fi
@@ -47,6 +49,8 @@
     php.ini and check any upstream changes according to the default
     configuration which can be found at php.ini.pacnew.
     '
+  # if we upgraded from an installation with old config layout, move the old
+  # php.ini to the right place and inform the user about the changes
   if [ -f /etc/php.ini.pacsave.tmp ] && [ $(vercmp '5.2.4-2' $2) -ge 0 ]; then
     mv /etc/php/php.ini /etc/php/php.ini.pacnew
     mv /etc/php.ini.pacsave.tmp /etc/php/php.ini
@@ -64,7 +68,7 @@
     External modules store their configuration in /etc/php/conf.d/. PHP
     scans that directory for any ini files.
     '
-    fi
+  fi
 }
 
 op=$1




More information about the arch-commits mailing list