[gnome-continuous] controllers: Don't barf on old appstest results



commit 4e5da3391e10aac1955c7051c15e1ed205fd095f
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Sat Nov 16 10:48:20 2013 -0500

    controllers: Don't barf on old appstest results

 extras/build.gnome.org/controllers.js |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/extras/build.gnome.org/controllers.js b/extras/build.gnome.org/controllers.js
index 4f914c3..b32fd0d 100644
--- a/extras/build.gnome.org/controllers.js
+++ b/extras/build.gnome.org/controllers.js
@@ -34,6 +34,12 @@
         var apps = [];
         $http.get(buildRoot + 'applicationstest/apps.json').success(function(data) {
             var apps = data['apps'];
+
+            // Older builds use a different scheme for the
+            // applicationstest; just ignore them.
+            if (!apps.forEach)
+                return;
+
             apps.forEach(function(app) {
                 // Mangle the data a bit
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]