[Git][reproducible-builds/reproducible-misc][master] use the new udd-mirror hostname and user, instead of the deprecated one
Mattia Rizzolo
gitlab at salsa.debian.org
Sat Nov 28 09:45:44 UTC 2020
Mattia Rizzolo pushed to branch master at Reproducible Builds / reproducible-misc
Commits:
230891c5 by Mattia Rizzolo at 2020-11-28T10:45:28+01:00
use the new udd-mirror hostname and user, instead of the deprecated one
Signed-off-by: Mattia Rizzolo <mattia at debian.org>
- - - - -
1 changed file:
- rblib/remote.py
Changes:
=====================================
rblib/remote.py
=====================================
@@ -20,10 +20,12 @@ JSON_CACHE_FILE = 'reproducible.json'
log = logger.setup_logging(__name__)
+
def load_json_cache():
with open(JSON_CACHE_FILE) as f:
return json.load(f)
+
def load_json():
CACHE_SECONDS = 10 * 60
try:
@@ -84,9 +86,9 @@ def load_reproducible_status():
def start_udd_connection():
- username = "public-udd-mirror"
- password = "public-udd-mirror"
- host = "public-udd-mirror.xvm.mit.edu"
+ username = "udd-mirror"
+ password = "udd-mirror"
+ host = "udd-mirror.debian.net"
port = 5432
db = "udd"
try:
@@ -109,7 +111,7 @@ def start_udd_connection():
return None
else:
raise
- except:
+ except Exception:
log.exception('Erorr connecting to the UDD database replica.' +
'The full error is:')
log.error('Failing nicely anyway, all queries will return an empty ' +
@@ -128,10 +130,9 @@ def query_udd(conn_udd, query):
cursor = conn_udd.cursor()
try:
cursor.execute(query)
- except:
+ except Exception:
log.exception('The UDD server encountered a issue while executing the'
' query. The full error is:')
log.error('Failing nicely anyway, returning an empty response.')
return []
return cursor.fetchall()
-
View it on GitLab: https://salsa.debian.org/reproducible-builds/reproducible-misc/-/commit/230891c528ee20dfd8f996d677c7242fa766a3e9
--
View it on GitLab: https://salsa.debian.org/reproducible-builds/reproducible-misc/-/commit/230891c528ee20dfd8f996d677c7242fa766a3e9
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.reproducible-builds.org/pipermail/rb-commits/attachments/20201128/61d452d2/attachment.htm>
More information about the rb-commits
mailing list