Author: buildbot
Date: Sat Feb 8 18:15:57 2014
New Revision: 896913
Log:
Staging update by buildbot for ooo-site
Modified:
websites/staging/ooo-site/trunk/cgi-bin/ (props changed)
websites/staging/ooo-site/trunk/content/ (props changed)
websites/staging/ooo-site/trunk/content/download/test/download.js
Propchange: websites/staging/ooo-site/trunk/cgi-bin/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Sat Feb 8 18:15:57 2014
@@ -1 +1 @@
-1566073
+1566076
Propchange: websites/staging/ooo-site/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Sat Feb 8 18:15:57 2014
@@ -1 +1 @@
-1566073
+1566076
Modified: websites/staging/ooo-site/trunk/content/download/test/download.js
==============================================================================
--- websites/staging/ooo-site/trunk/content/download/test/download.js (original)
+++ websites/staging/ooo-site/trunk/content/download/test/download.js Sat Feb
8 18:15:57 2014
@@ -11,22 +11,22 @@
/*
* Define global variables
*/
-var LANG_ISO = "";
-var LANG_ARRAY = "";
-var LANG_NAME = "";
-var RELEASE_MATRIX_PLATFORM_POS = -1;
-var RELEASE_MATRIX_PLATFORM = "";
-var UI_PLATFORM = "";
-var URL_PLATFORM = "";
-var FILENAME = "";
-var FILESIZE = 0;
-var EXTENSION = "";
-var LINK = "";
-var CHECKSUM_KEYS = "";
-var CHECKSUM_ASC = "";
-var CHECKSUM_MD5 = "";
-var CHECKSUM_SHA256 = "";
-var ERROR = false;
+var LANG_ISO = ""; // The language as ISO code
+var LANG_ARRAY = ""; // This array contains all
language specific data
+var LANG_NAME = ""; // The language as its native
name
+var RELEASE_MATRIX_PLATFORM_POS = -1; // The position of the
platform in the release matrix array
+var RELEASE_MATRIX_PLATFORM = ""; // The platform in the release
matrix array
+var UI_PLATFORM = ""; // The platform as
readable string
+var URL_PLATFORM = ""; // The platform as part of the
download URL
+var FILENAME = ""; // The complete filename of the
download URL
+var FILESIZE = 0; // The filesize of the download
file
+var EXTENSION = ""; // The file extension of the
download URL
+var LINK = ""; // The complete download URL
+var CHECKSUM_KEYS = ""; // The KEYS file as download URL
+var CHECKSUM_ASC = ""; // The ASC file as download URL
+var CHECKSUM_MD5 = ""; // The MD5 file as download URL
+var CHECKSUM_SHA256 = ""; // The SHA256 file as download
URL
+var ERROR = false; // The download URL is correct
(false) or not (true)?
/*
* Initialize the download script and set all global variables with data
@@ -147,6 +147,16 @@ function getLink() {
*/
if ( hasMirrorLink() ) {
+ // If platform is Mac OS X 10.6 or older, then do not provide a
download link.
+ // But instead link to an AOO file in the archive.
+ if ( URL_PLATFORM == "OS X 32-bit Intel (DMG)" ) {
+ if ( UI_PLATFORM == "MacOS X (<= 10.6) 32-bit Intel
(DMG)" ) {
+ LINK =
"http://www.openoffice.org/download/other.html";
+ ERROR = true;
+ return LINK;
+ }
+ }
+
if ( URL_PLATFORM == "" ) {
// If no platform was recognized, set the "other.html"
webpage as alternative download URL
if ( UI_PLATFORM == "" ) {
@@ -322,6 +332,15 @@ function getPlatform() {
if ( os.indexOf( "mac" ) != -1 ) { UI_PLATFORM
= "OS X 32-bit Intel (DMG)";
URL_PLATFORM
= "Mac_x86_install";
EXTENSION
= ".dmg";
+ if ( ua.indexOf( "10.6" ) != -1 ||
+ ua.indexOf( "10_6" ) != -1 ||
+ ua.indexOf( "10.5" ) != -1 ||
+ ua.indexOf( "10_5" ) != -1 ||
+ ua.indexOf( "10.4" ) != -1 ||
+ ua.indexOf( "10_4" ) != -1 ||
+ ua.indexOf( "10.3" ) != -1 ||
+ ua.indexOf( "10_3" ) != -1 ) { UI_PLATFORM
= "MacOS X (<= 10.6) 32-bit Intel (DMG)";
+ }
}
}