DBUpgrade: locales parsen
authorSven Schöling <s.schoeling@linet-services.de>
Mon, 20 Jul 2015 14:13:41 +0000 (16:13 +0200)
committerSven Schöling <s.schoeling@linet-services.de>
Mon, 20 Jul 2015 14:37:27 +0000 (16:37 +0200)
SL/DBUpgrade2.pm

index 6d0b207..283e5a4 100644 (file)
@@ -59,6 +59,7 @@ sub parse_dbupdate_controls {
     my $control = {
       "priority" => 1000,
       "depends"  => [],
+      "locales"  => [],
     };
 
     while (<IN>) {
@@ -73,6 +74,8 @@ sub parse_dbupdate_controls {
 
       if ($fields[0] eq "depends") {
         push(@{$control->{"depends"}}, split(/\s+/, $fields[1]));
+      } elsif ($fields[0] eq "locales") {
+        push @{$control->{locales}}, $fields[1];
       } else {
         $control->{$fields[0]} = $fields[1];
       }