Bug 569114 - Add AArch64 to installer block

Change-Id: Iceb7fa58e521e1e9ddd1d768ef40da73ba482612
Signed-off-by: Eric Poirier <eric.poirier@eclipse-foundation.org>
diff --git a/classes/downloads/eclipseInstaller.php b/classes/downloads/eclipseInstaller.php
index 7c89b81..f4c49cd 100644
--- a/classes/downloads/eclipseInstaller.php
+++ b/classes/downloads/eclipseInstaller.php
@@ -329,7 +329,7 @@
       return $download_links;
     }
 
-   $accepted_version = array('x86_64','32bit');
+   $accepted_version = array('x86_64','32bit', 'AArch64');
     if (!empty($version) && !in_array($version, $accepted_version)) {
       return array();
     }
@@ -396,6 +396,10 @@
     if (!empty($data['files']['linux64'])) {
       $this->addlink('Linux', str_replace('www.eclipse.org', $eclipse_env['domain'], $data['files']['linux64']['url']), "x86_64", $data['files']['linux64']['jre']);
     }
+
+    if (!empty($data['files']['linuxaarch64'])) {
+      $this->addlink('Linux', str_replace('www.eclipse.org', $eclipse_env['domain'], $data['files']['linuxaarch64']['url']), "AArch64", $data['files']['linuxaarch64']['jre']);
+    }
   }
 
   /**