diff options
author | sb <sb@openoffice.org> | 2010-05-21 10:56:25 +0200 |
---|---|---|
committer | sb <sb@openoffice.org> | 2010-05-21 10:56:25 +0200 |
commit | b9e2b2fab12fc904ab3448057503782adb1e0b1b (patch) | |
tree | 0b7f66172784b6014f0a69f4a79749c4facddb08 | |
parent | 09993c4710798dfb1e9c67b2a02a31ce14adab98 (diff) | |
parent | 34813c1b45edec0aeaf2a04f8d4741712b02af78 (diff) |
sb120: merged in #162191# masterfix
-rw-r--r-- | solenv/bin/modules/installer/simplepackage.pm | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/solenv/bin/modules/installer/simplepackage.pm b/solenv/bin/modules/installer/simplepackage.pm index 08f6eacf9e24..314bcef64ee2 100644 --- a/solenv/bin/modules/installer/simplepackage.pm +++ b/solenv/bin/modules/installer/simplepackage.pm @@ -148,12 +148,15 @@ sub register_extensions } close (UNOPKG); - for ( my $j = 0; $j <= $#unopkgoutput; $j++ ) { push( @installer::globals::logfileinfo, "$unopkgoutput[$j]"); } - my $returnvalue = $?; # $? contains the return value of the systemcall if ($returnvalue) { + # Writing content of @unopkgoutput only in the error case into the log file. Sometimes it + # contains strings like "Error" even in the case of success. This causes a packaging error + # when the log file is analyzed at the end, even if there is no real error. + for ( my $j = 0; $j <= $#unopkgoutput; $j++ ) { push( @installer::globals::logfileinfo, "$unopkgoutput[$j]"); } + $infoline = "ERROR: Could not execute \"$systemcall\"!\nExitcode: '$returnvalue'\n"; push( @installer::globals::logfileinfo, $infoline); installer::exiter::exit_program("ERROR: $systemcall failed!", "register_extensions"); |