summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-02-08 11:08:38 +0100
committerHolger Levsen <holger@layer-acht.org>2015-02-08 11:08:38 +0100
commit2e734ebaa472046e7158316025b52b0ac4558eca (patch)
tree80bda91aa68c88fa944adc272f345f640e3a0da8 /bin
parent29f32dc32db90e4cc07caa083fa565a9f03753af (diff)
downloadjenkins.debian.net-2e734ebaa472046e7158316025b52b0ac4558eca.tar.xz
reproducible: initialize udd db connection only when also querying udd
Diffstat (limited to 'bin')
-rwxr-xr-xbin/reproducible_common.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/reproducible_common.py b/bin/reproducible_common.py
index 6fe0a549..a1ff02aa 100755
--- a/bin/reproducible_common.py
+++ b/bin/reproducible_common.py
@@ -227,6 +227,7 @@ def start_udd_connection():
return conn
def query_udd(query):
+ conn_udd = start_udd_connection()
cursor = conn_udd.cursor()
cursor.execute(query)
return cursor.fetchall()
@@ -343,7 +344,6 @@ def get_bugs():
# init the databases connections
conn_db = start_db_connection() # the local sqlite3 reproducible db
-conn_udd = start_udd_connection()
# do the db querying
amount = int(query_db('SELECT count(name) FROM sources')[0][0])