summaryrefslogtreecommitdiff
path: root/solenv
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2006-04-19 14:04:37 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2006-04-19 14:04:37 +0000
commit08a6d3d23eb59ea5918ee0e8e63ef5480439912b (patch)
treebacea88f090f158c51d6b2af436a08d4d572e7f3 /solenv
parentf62180aec4625abdbc52873e5e3df3da057972d2 (diff)
INTEGRATION: CWS native43 (1.26.26); FILE MERGED
2006/04/06 08:37:19 is 1.26.26.2: #i63530# include packageversion into download filename 2006/04/05 11:09:13 is 1.26.26.1: #i63526# removing en-US from download file name
Diffstat (limited to 'solenv')
-rw-r--r--solenv/bin/modules/installer/download.pm22
1 files changed, 19 insertions, 3 deletions
diff --git a/solenv/bin/modules/installer/download.pm b/solenv/bin/modules/installer/download.pm
index ad3166403193..3a849f9bc28c 100644
--- a/solenv/bin/modules/installer/download.pm
+++ b/solenv/bin/modules/installer/download.pm
@@ -4,9 +4,9 @@
#
# $RCSfile: download.pm,v $
#
-# $Revision: 1.26 $
+# $Revision: 1.27 $
#
-# last change: $Author: rt $ $Date: 2006-03-06 09:28:36 $
+# last change: $Author: hr $ $Date: 2006-04-19 15:04:37 $
#
# The Contents of this file are made available subject to
# the terms of GNU Lesser General Public License Version 2.1.
@@ -415,6 +415,14 @@ sub get_downloadname_language
$languages =~ s/_en-US//;
}
+ # en-US is default language and can be removed therefore
+ # for one-language installation sets
+
+ if ( $languages =~ /^\s*en-US\s*$/ )
+ {
+ $languages = "";
+ }
+
return $languages;
}
@@ -533,10 +541,18 @@ sub set_download_filename
if ( $localminor =~ /^\s*\w(\d+)\w*\s*$/ ) { $localminor = $1; }
$versionstring = $allvariables->{'PRODUCTVERSION'} . "." . $localminor;
}
+ else
+ {
+ if ( $allvariables->{'PACKAGEVERSION'} )
+ {
+ $versionstring = $allvariables->{'PACKAGEVERSION'};
+ }
+ }
my $filename = $start . "_" . $versionstring . "_" . $date . "_" . $platform . "_" . $type . "_" . $language . $addon;
- $filename =~ s/\_\_/\_/g; # necessary, if $versionstring or $platform is empty
+ $filename =~ s/\_\_/\_/g; # necessary, if $versionstring or $platform or $language are empty
+ $filename =~ s/\_\s*$//; # necessary, if $language and $addon are empty
$installer::globals::ooodownloadfilename = $filename;