The following commit has been merged in the master branch:
commit da9d5823db4200f5465b6c8276448a41358e980b
Author: Andreas Tille <[email protected]>
Date:   Fri Nov 14 11:29:06 2014 +0100

    "Calculate" release names of Ubuntu to make sure we always get the latest 
release in

diff --git a/webtools/thermometer.py b/webtools/thermometer.py
index 770a513..6da63cb 100755
--- a/webtools/thermometer.py
+++ b/webtools/thermometer.py
@@ -7,10 +7,6 @@ UDDPORT=5452
 PORT=UDDPORT
 DEFAULTPORT=5432
 
-ubuntuprev2='raring'
-ubuntuprev1='saucy'
-latestubuntu='trusty'
-
 from sys import argv, stderr, exit
 import os
 import psycopg2
@@ -69,6 +65,18 @@ def main():
     blendname = argv[1]
     config = ReadConfig(blendname)
 
+    # obtain release names automatically
+    query = "SELECT release FROM ubuntu_packages WHERE NOT release LIKE '%-%' 
GROUP BY release ORDER BY release DESC LIMIT 3"
+    _execute_udd_query(query)
+    if curs.rowcount > 0:
+        releasenames = curs.fetchall()
+        latestubuntu = releasenames[0][0]
+        ubuntuprev1  = releasenames[1][0]
+        ubuntuprev2  = releasenames[2][0]
+    else:
+        print >>stderr, "Failed to obtain Ubuntu release names."
+        exit(1)
+
     query = """PREPARE query_thermometer (text) AS
      SELECT b.source,
            stable.version AS stable,

-- 
Static and dynamic websites for Debian Pure Blends

_______________________________________________
Blends-commit mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/blends-commit

Reply via email to