This is an automated email from the ASF dual-hosted git repository.

mseidel pushed a commit to branch AOO41X
in repository https://gitbox.apache.org/repos/asf/openoffice.git


The following commit(s) were added to refs/heads/AOO41X by this push:
     new b4e95e9  Fixed error in last commit
b4e95e9 is described below

commit b4e95e965596c1bb129c705a6177bd619f1a6955
Author: mseidel <[email protected]>
AuthorDate: Sat May 22 12:23:09 2021 +0200

    Fixed error in last commit
---
 main/solenv/bin/modules/installer/download.pm | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/main/solenv/bin/modules/installer/download.pm 
b/main/solenv/bin/modules/installer/download.pm
index 13ac54b..351215d 100644
--- a/main/solenv/bin/modules/installer/download.pm
+++ b/main/solenv/bin/modules/installer/download.pm
@@ -1404,11 +1404,10 @@ sub replace_identifier_in_nshfile
 {
        my ( $nshfile, $identifier, $newstring, $nshfilename, $onelanguage ) = 
@_;
 
-       for ( my $i = 0; $i <= $#{$nshfile}; $i++ )
-
        $newstring =~ s/\\r/\$\\r/g; # \r -> $\r in modern nsis versions
        $newstring =~ s/\\n/\$\\n/g; # \n -> $\n in modern nsis versions
 
+       for ( my $i = 0; $i <= $#{$nshfile}; $i++ )
        {
                if ( ${$nshfile}[$i] =~ /\s+\Q$identifier\E\s+\"(.+)\"\s*$/ )
                {

Reply via email to