Author: marcus
Date: Mon Mar 10 23:00:59 2014
New Revision: 1576121

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

Modified:
    openoffice/ooo-site/trunk/content/download/download.js

Modified: openoffice/ooo-site/trunk/content/download/download.js
URL: 
http://svn.apache.org/viewvc/openoffice/ooo-site/trunk/content/download/download.js?rev=1576121&r1=1576120&r2=1576121&view=diff
==============================================================================
--- openoffice/ooo-site/trunk/content/download/download.js (original)
+++ openoffice/ooo-site/trunk/content/download/download.js Mon Mar 10 23:00:59 
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 ||


Reply via email to