openoffice-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mar...@apache.org
Subject svn commit: r1576105 - /openoffice/ooo-site/trunk/content/download/test/download.js
Date Mon, 10 Mar 2014 22:04:20 GMT
Author: marcus
Date: Mon Mar 10 22:04:20 2014
New Revision: 1576105

URL: http://svn.apache.org/r1576105
Log:
Added code to recognize the platform arch on Linux also from the 'navigator.appVersion' variable

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=1576105&r1=1576104&r2=1576105&view=diff
==============================================================================
--- openoffice/ooo-site/trunk/content/download/test/download.js (original)
+++ openoffice/ooo-site/trunk/content/download/test/download.js Mon Mar 10 22:04:20 2014
@@ -415,7 +415,12 @@ function getPlatform() {
 		     os.indexOf( "i686"		) != -1 ||
 		     os.indexOf( "i586"		) != -1 ||
 		     os.indexOf( "i486"		) != -1 ||
-		     os.indexOf( "i386"		) != -1 ) {	UI_PLATFORM	= "Linux 32-bit (RPM)";
+		     os.indexOf( "i386"		) != -1 ||
+		     av.indexOf( "x86"		) != -1 ||
+		     av.indexOf( "i686"		) != -1 ||
+		     av.indexOf( "i586"		) != -1 ||
+		     av.indexOf( "i486"		) != -1 ||
+		     av.indexOf( "i386"		) != -1 ) {	UI_PLATFORM	= "Linux 32-bit (RPM)";
 								URL_PLATFORM	= "Linux_x86_install-rpm";
 								EXTENSION	= ".tar.gz";
 		     if ( ua.indexOf( "debian"    ) != -1 ||
@@ -429,7 +434,11 @@ function getPlatform() {
 		if ( os.indexOf( "_64"		) != -1 ||
 		     os.indexOf( "-64"		) != -1 ||
 		     os.indexOf( "x64"		) != -1 ||
-		     os.indexOf( "amd64"	) != -1 ) {	UI_PLATFORM	= "Linux 64-bit (RPM)";
+		     os.indexOf( "amd64"	) != -1 ||
+		     av.indexOf( "_64"		) != -1 ||
+		     av.indexOf( "-64"		) != -1 ||
+		     av.indexOf( "x64"		) != -1 ||
+		     av.indexOf( "amd64"	) != -1 ) {	UI_PLATFORM	= "Linux 64-bit (RPM)";
 								URL_PLATFORM	= "Linux_x86-64_install-rpm";
 								EXTENSION	= ".tar.gz";
 		     if ( ua.indexOf( "debian"	  ) != -1 ||



Mime
View raw message