Author: marcus
Date: Mon Aug 5 08:50:07 2013
New Revision: 1510388
URL: http://svn.apache.org/r1510388
Log:
Added 'i686' and '-64' as identified terms for Linux x86 and Linux x86-64
platforms
Modified:
openoffice/ooo-site/trunk/content/download/test/download.js
Modified: openoffice/ooo-site/trunk/content/download/test/download.js
URL:
http://svn.apache.org/viewvc/openoffice/ooo-site/trunk/content/download/test/download.js?rev=1510388&r1=1510387&r2=1510388&view=diff
==============================================================================
--- openoffice/ooo-site/trunk/content/download/test/download.js (original)
+++ openoffice/ooo-site/trunk/content/download/test/download.js Mon Aug 5
08:50:07 2013
@@ -19,7 +19,7 @@ var RELEASE_MATRIX_PLATFORM = "";
var UI_PLATFORM = "";
var URL_PLATFORM = "";
var FILENAME = "";
-var FILESIZE = "";
+var FILESIZE = 0;
var EXTENSION = "";
var CHECKSUM_KEYS = "";
var CHECKSUM_ASC = "";
@@ -257,8 +257,8 @@ function getPlatform() {
// Linux
if ( os.indexOf( "linux" ) != -1 ) {
- if ( os.indexOf( "x86" ) != -1 ) {
- UI_PLATFORM
= "Linux 32-bit (RPM)";
+ if ( os.indexOf( "x86" ) != -1 ||
+ os.indexOf( "i686" ) != -1 ) { UI_PLATFORM
= "Linux 32-bit (RPM)";
// UI_PLATFORM
= "Linux 32-bit (RPM/DEB ?)";
URL_PLATFORM
= "Linux_x86_install-rpm";
EXTENSION
= ".tar.gz";
@@ -269,7 +269,8 @@ function getPlatform() {
EXTENSION
= ".tar.gz";
}
}
- if ( os.indexOf( "_64" ) != -1 ) { UI_PLATFORM
= "Linux 64-bit (RPM)";
+ if ( os.indexOf( "_64" ) != -1 ||
+ os.indexOf( "-64" ) != -1 ) { UI_PLATFORM
= "Linux 64-bit (RPM)";
// UI_PLATFORM
= "Linux 64-bit (RPM/DEB ?)";
URL_PLATFORM
= "Linux_x86-64_install-rpm";
EXTENSION
= ".tar.gz";