Kaydet (Commit) b633d5a9 authored tarafından Ivo Hinkelmann's avatar Ivo Hinkelmann

masterfix #i10000# #162191# unopkg writes ERROR into log file

...@@ -213,7 +213,6 @@ OpenOffice_Dev ...@@ -213,7 +213,6 @@ OpenOffice_Dev
PACKAGEREVISION {milestone} PACKAGEREVISION {milestone}
LICENSENAME LGPL LICENSENAME LGPL
SERVICESPROJEKT 1 SERVICESPROJEKT 1
WITHJREPRODUCT 1
GLOBALFILEGID gid_File_Lib_Vcl GLOBALFILEGID gid_File_Lib_Vcl
GLOBALPATCHFILEGID gid_File_Txt_Patchfiles GLOBALPATCHFILEGID gid_File_Txt_Patchfiles
SPELLCHECKERFILE spellchecker_selection.txt SPELLCHECKERFILE spellchecker_selection.txt
...@@ -565,7 +564,6 @@ BrOffice_Dev ...@@ -565,7 +564,6 @@ BrOffice_Dev
PACKAGEREVISION {milestone} PACKAGEREVISION {milestone}
LICENSENAME LGPL LICENSENAME LGPL
SERVICESPROJEKT 1 SERVICESPROJEKT 1
WITHJREPRODUCT 1
SETSTATICPATH 1 SETSTATICPATH 1
GLOBALFILEGID gid_File_Lib_Vcl GLOBALFILEGID gid_File_Lib_Vcl
GLOBALPATCHFILEGID gid_File_Txt_Patchfiles GLOBALPATCHFILEGID gid_File_Txt_Patchfiles
......
...@@ -1880,7 +1880,7 @@ sub remove_Languagepacklibraries_from_Installset ...@@ -1880,7 +1880,7 @@ sub remove_Languagepacklibraries_from_Installset
} }
$infoline = "\n"; $infoline = "\n";
push( @installer::globals::globallogfileinfo, $infoline); push( @installer::globals::logfileinfo, $infoline);
return \@newitemsarray; return \@newitemsarray;
} }
......
...@@ -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