Kaydet (Commit) b9e2b2fa authored tarafından sb's avatar sb

sb120: merged in #162191# masterfix

...@@ -148,12 +148,15 @@ sub register_extensions ...@@ -148,12 +148,15 @@ sub register_extensions
} }
close (UNOPKG); close (UNOPKG);
for ( my $j = 0; $j <= $#unopkgoutput; $j++ ) { push( @installer::globals::logfileinfo, "$unopkgoutput[$j]"); }
my $returnvalue = $?; # $? contains the return value of the systemcall my $returnvalue = $?; # $? contains the return value of the systemcall
if ($returnvalue) 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"; $infoline = "ERROR: Could not execute \"$systemcall\"!\nExitcode: '$returnvalue'\n";
push( @installer::globals::logfileinfo, $infoline); push( @installer::globals::logfileinfo, $infoline);
installer::exiter::exit_program("ERROR: $systemcall failed!", "register_extensions"); installer::exiter::exit_program("ERROR: $systemcall failed!", "register_extensions");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment