[Blends-commit] [SCM] website branch, master, updated. cc77540e9a6be865df89bf6dc57d73aef5dfb18e

Andreas Tille tille at debian.org
Thu Mar 10 06:37:04 UTC 2016


The following commit has been merged in the master branch:
commit cc77540e9a6be865df89bf6dc57d73aef5dfb18e
Author: Andreas Tille <tille at debian.org>
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



More information about the Blends-commit mailing list