diff options
author | Michael Meeks <michael.meeks@suse.com> | 2013-05-23 10:09:35 +0100 |
---|---|---|
committer | Michael Meeks <michael.meeks@suse.com> | 2013-05-23 11:33:34 +0100 |
commit | 197529947593132daf7a6e9dffa7c34e4203a393 (patch) | |
tree | a76440c91382afd0b48e5e8d0853d197dbf68d50 /solenv | |
parent | e146578775668194e5331ecd067185ff9ad456bb (diff) |
attempted blind fix of msi encoding parsing issue.
Change-Id: Iae582b8733254233517dbbf20a9293041b2f9b6d
Diffstat (limited to 'solenv')
-rw-r--r-- | solenv/bin/modules/installer/control.pm | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/solenv/bin/modules/installer/control.pm b/solenv/bin/modules/installer/control.pm index 7600754443eb..67dd1931d7c9 100644 --- a/solenv/bin/modules/installer/control.pm +++ b/solenv/bin/modules/installer/control.pm @@ -432,10 +432,10 @@ sub read_lcidlist { my $line = ${$lcidlist}[$i]; - if ( $line =~ /^\s*\#/ ) { next; } # this is a comment line - if ( $line =~ /^$/ ) { next; } # this is an empty line - if ( $line =~ /^(.*?)(\#.*)$/ ) { $line = $1; } # removing comments after "#" - if ( $line =~ /^\s*([\w-]+)\s*(\d+)\s*(\d+)\s*$/ ) + $line =~ s/\#.*$//; # removing comments after "#" + if ( $line =~ /^\s*$/ ) { next; } # this is an empty line + + if ( $line =~ /^\s*([\w-]+)\s+(\d+)\s+(\d+)\s*$/ ) { my $onelanguage = $1; my $windowslanguage = $3; @@ -443,7 +443,7 @@ sub read_lcidlist } else { - installer::exiter::exit_program("ERROR: Wrong syntax in Windows LCID list $installer::globals::lcidlistname in line $i.", "read_lcidlist"); + installer::exiter::exit_program("ERROR: Wrong syntax in Windows LCID list $installer::globals::lcidlistname in line $i: '$line'", "read_lcidlist"); } } $installer::globals::msilanguage = \%msilanguage; |