diff options
author | David Tardon <dtardon@redhat.com> | 2013-05-14 16:07:54 +0200 |
---|---|---|
committer | Fridrich Strba <fridrich@documentfoundation.org> | 2013-05-15 09:03:32 +0000 |
commit | 44727e34a1e4eb03b01c6be77a753a18ae84aed7 (patch) | |
tree | 8b4bd64acf49c18a31074fa1b7ec64089c917626 /solenv | |
parent | 4e312f0c90247ccaa138520aa9e080453ec90b64 (diff) |
drop now unused DEFAULT_TO_ENGLISH_FOR_PACKING
See
http://lists.freedesktop.org/archives/libreoffice/2013-May/051706.html
for explanation.
Change-Id: Ieb7480f9f7a64a026abc985edde3ed932c1e8f56
Reviewed-on: https://gerrit.libreoffice.org/3908
Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org>
Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org>
Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
Diffstat (limited to 'solenv')
-rw-r--r-- | solenv/bin/modules/installer/scriptitems.pm | 68 | ||||
-rwxr-xr-x | solenv/bin/ooinstall | 4 |
2 files changed, 2 insertions, 70 deletions
diff --git a/solenv/bin/modules/installer/scriptitems.pm b/solenv/bin/modules/installer/scriptitems.pm index cd4b1413a85e..3406e2f5e208 100644 --- a/solenv/bin/modules/installer/scriptitems.pm +++ b/solenv/bin/modules/installer/scriptitems.pm @@ -926,15 +926,7 @@ sub get_sourcepath_from_filename_and_includepath_classic $onefile = ""; # the sourcepath has to be empty if ( $write_logfile) { - if ( $ENV{'DEFAULT_TO_ENGLISH_FOR_PACKING'} ) - { - $infoline = "WARNING: Source for $$searchfilenameref not found!\n"; # Important message in log file - } - else - { - $infoline = "ERROR: Source for $$searchfilenameref not found!\n"; # Important message in log file - } - + $infoline = "ERROR: Source for $$searchfilenameref not found!\n"; # Important message in log file push( @installer::globals::logfileinfo, $infoline); } } @@ -1002,15 +994,7 @@ sub get_sourcepath_from_filename_and_includepath $onefile = ""; # the sourcepath has to be empty if ( $write_logfile) { - if ( $ENV{'DEFAULT_TO_ENGLISH_FOR_PACKING'} ) - { - $infoline = "WARNING: Source for $$searchfilenameref not found!\n"; # Important message in log file - } - else - { - $infoline = "ERROR: Source for $$searchfilenameref not found!\n"; # Important message in log file - } - + $infoline = "ERROR: Source for $$searchfilenameref not found!\n"; # Important message in log file push( @installer::globals::logfileinfo, $infoline); } } @@ -1097,54 +1081,6 @@ sub get_Source_Directory_For_Files_From_Includepathlist else { $sourcepathref = get_sourcepath_from_filename_and_includepath(\$onefilename, $includepatharrayref, 1); } $onefile->{'sourcepath'} = $$sourcepathref; # This $$sourcepathref is empty, if no source was found - - # defaulting to english for multilingual files if DEFAULT_TO_ENGLISH_FOR_PACKING is set - - if ( $ENV{'DEFAULT_TO_ENGLISH_FOR_PACKING'} ) - { - if (( ! $onefile->{'sourcepath'} ) && ( $onefile->{'ismultilingual'} )) - { - my $oldname = $onefile->{'Name'}; - my $oldlanguage = $onefile->{'specificlanguage'}; - my $newlanguage = "en-US"; - $onefilename = $onefile->{'Name'}; - $onefilename =~ s/$oldlanguage\./$newlanguage\./; # Example: tplwizfax_it.zip -> tplwizfax_en-US.zip - $onefilename =~ s/^\s*\Q$installer::globals::separator\E//; # filename begins with a slash, for instance /registry/schema/org/openoffice/VCL.xcs - $sourcepathref = get_sourcepath_from_filename_and_includepath(\$onefilename, $includepatharrayref, 1); - $onefile->{'sourcepath'} = $$sourcepathref; # This $$sourcepathref is empty, if no source was found - - if ($onefile->{'sourcepath'}) # defaulting to english was successful - { - $infoline = "WARNING: Using $onefilename instead of $oldname\n"; - push( @installer::globals::logfileinfo, $infoline); - print " $infoline"; - - # If the directory, in which the new file is installed, is not language dependent, - # the filename has to be changed to avoid installation conflicts - # No mechanism for resource files! - # -> implementing for the content of ARCHIVE files - - if ( $onefile->{'Styles'} =~ /\bARCHIVE\b/ ) - { - my $directorygid = $onefile->{'Dir'}; - my $islanguagedependent = determine_directory_language_dependency($directorygid, $dirsref); - - if ( ! $islanguagedependent ) - { - $onefile->{'Styles'} =~ s/\bARCHIVE\b/ARCHIVE, RENAME_TO_LANGUAGE/; # Setting new flag RENAME_TO_LANGUAGE - $infoline = "Setting flag RENAME_TO_LANGUAGE: File $onefile->{'Name'} in directory: $directorygid\n"; - push( @installer::globals::logfileinfo, $infoline); - } - } - } - else - { - $infoline = "WARNING: Using $onefile->{'Name'} instead of $oldname was not successful\n"; - push( @installer::globals::logfileinfo, $infoline); - $onefile->{'Name'} = $oldname; # Switching back to old file name - } - } - } } $infoline = "\n"; # empty line after listing of all files diff --git a/solenv/bin/ooinstall b/solenv/bin/ooinstall index 4902ddabf372..59335e809584 100755 --- a/solenv/bin/ooinstall +++ b/solenv/bin/ooinstall @@ -72,10 +72,6 @@ $ENV{LAST_MINOR} = 'm0'; $ENV{OUT} = "../$ENV{'INPATH'}"; $ENV{LOCAL_OUT} = $ENV{OUT}; $ENV{LOCAL_COMMON_OUT} = $ENV{OUT}; -# FIXME: the following variable helps to install localizations even if some -# files are not localized (like Japanese, Chinese wordbook), it makes -# the installer to use the English localization of the file instead. -$ENV{DEFAULT_TO_ENGLISH_FOR_PACKING} = 1; my @larr; $langs=$ENV{WITH_LANG_LIST}; |