fixed order in which SQL scripts are applied by web installer
authorGalen Charlton <galen.charlton@liblime.com>
Thu, 6 Dec 2007 21:57:26 +0000 (15:57 -0600)
committerJoshua Ferraro <jmf@liblime.com>
Sat, 8 Dec 2007 13:28:01 +0000 (07:28 -0600)
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>

installer/install.pl

index 21ec5d8..5e5ccc1 100755 (executable)
@@ -301,7 +301,7 @@ elsif ( $step && $step == 3 ) {
         my @fnames = sort {
             my @aa = split /\/|\\/, ($a);
             my @bb = split /\/|\\/, ($b);
-            $aa[-1] lt $bb[-1]
+            $aa[-1] cmp $bb[-1]
         } $query->param('framework');
        if ( $info{dbms} eq 'mysql' ) { $dbh->do('SET FOREIGN_KEY_CHECKS=0'); }
        elsif ( $info{dbms} eq 'Pg' ) { $dbh->do('SET CONSTRAINTS ALL DEFERRED;'); }