The following commit has been merged in the master branch:
commit cc77540e9a6be865df89bf6dc57d73aef5dfb18e
Author: Andreas Tille <[email protected]>
Date:   Wed Mar 9 21:27:35 2016 +0100

    Fix connection string by prefering official UDD over public mirror which 
seems to be offline currently

diff --git a/webtools/generate-debtags-field-list 
b/webtools/generate-debtags-field-list
index 6fcb77b..0fb3228 100755
--- a/webtools/generate-debtags-field-list
+++ b/webtools/generate-debtags-field-list
@@ -25,8 +25,11 @@ SELECT package, tag from debtags
   ORDER BY tag, package;
 """ % (grouptag, keytag)
 
-conn = connect(database='udd', port=5452, host='public-udd-mirror.xvm.mit.edu',
-               user='public-udd-mirror', password='public-udd-mirror')
+try:
+    conn = connect("service=udd")
+except psycopg2.OperationalError:
+    conn = connect(database='udd', port=5452, 
host='public-udd-mirror.xvm.mit.edu',
+                   user='public-udd-mirror', password='public-udd-mirror')
 cur = conn.cursor()
 cur.execute(query)
 rows = cur.fetchall()

-- 
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