[Fusionforge-commits] r15188 - branches/Branch_5_1/src/deb-specific

Thorsten Glaser mirabilos at fusionforge.org
Thu Mar 22 15:07:52 CET 2012


Author: mirabilos
Date: 2012-03-22 15:07:52 +0100 (Thu, 22 Mar 2012)
New Revision: 15188

Modified:
   branches/Branch_5_1/src/deb-specific/db-upgrade.pl
Log:
just accept a .sql suffix and strip it off, I did the same error
as jheyman did, multiple times over the years?\226?\128?\166


Modified: branches/Branch_5_1/src/deb-specific/db-upgrade.pl
===================================================================
--- branches/Branch_5_1/src/deb-specific/db-upgrade.pl	2012-03-22 13:56:03 UTC (rev 15187)
+++ branches/Branch_5_1/src/deb-specific/db-upgrade.pl	2012-03-22 14:07:52 UTC (rev 15188)
@@ -2056,6 +2056,7 @@
 sub update_with_sql ( $$ ) {
     my $sqlfile = shift or die "Not enough arguments" ;
     my $target = shift or die "Not enough arguments" ;
+    $sqlfile =~ s/\.sql$//;
     my $version = &get_db_version ;
     if (&is_lesser ($version, $target)) {
         &debug ("Upgrading database with $sqlfile.sql") ;




More information about the Fusionforge-commits mailing list