Bug 7375 - Update minimum version of Perl to 5.10
authorMagnus Enger <magnus@enger.priv.no>
Thu, 22 Dec 2011 09:20:44 +0000 (10:20 +0100)
committerPaul Poulain <paul.poulain@biblibre.com>
Fri, 13 Jan 2012 10:42:33 +0000 (11:42 +0100)
- Change the installer script to look for at least 5.10/5.010000
- Change the template to ask for the correct version

To test:
- Run through the webinstaller on 5.10 or newer and check that there are
no errors.
- Ideally: Run through the webinstaller on an older version than 5.10 and
check that there *is* an error, asking for 5.10 or newer.

Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
installer/install.pl
koha-tmpl/intranet-tmpl/prog/en/modules/installer/step1.tt

index ae478b6..1619f50 100755 (executable)
@@ -59,7 +59,7 @@ if ( $step && $step == 1 ) {
     $template->param( language => 1 );
     $template->param( 'checkmodule' => 1 ); # we start with the assumption that there are no problems and set this to 0 if there are
 
-    unless ( $] >= 5.008008 ) {    # Bug 4505
+    unless ( $] >= 5.010000 ) {    # Bug 7375
         $template->param( problems => 1, perlversion => 1, checkmodule => 0 );
     }
 
index dbc3736..52c52c6 100644 (file)
@@ -49,8 +49,8 @@ listed, please inform your systems administrator.</p>
   <p>I encountered some problems.</p>
    <ul>
     [% IF ( perlversion ) %]
-    <li>Your perl version seems to be obsolete.
-      Please upgrade to a newer version of Perl (at least Version 5.006001).</li>
+    <li>Your Perl version seems to be obsolete.
+      Please upgrade to a newer version of Perl (at least Version 5.10).</li>
     [% END %]
    </ul>
   [% END %]