summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorMattia Rizzolo <mattia@mapreri.org>2015-02-09 01:40:21 +0100
committerHolger Levsen <holger@layer-acht.org>2015-02-09 02:01:21 +0100
commit23f6db1522c08ef6a9dc1cd309d01bdec54f31ee (patch)
tree1137006b8fe03fd3d514c047fbca3dc8418584d8 /bin
parent9e0a2704b51b4b15995201e586cff4f0f99c7433 (diff)
downloadjenkins.debian.net-23f6db1522c08ef6a9dc1cd309d01bdec54f31ee.tar.xz
Reverting the last two commits
Diffstat (limited to 'bin')
-rwxr-xr-xbin/reproducible_common.py3
-rwxr-xr-xbin/reproducible_html_packages.py10
2 files changed, 4 insertions, 9 deletions
diff --git a/bin/reproducible_common.py b/bin/reproducible_common.py
index 79db4f35..6fe0a549 100755
--- a/bin/reproducible_common.py
+++ b/bin/reproducible_common.py
@@ -343,8 +343,7 @@ def get_bugs():
# init the databases connections
conn_db = start_db_connection() # the local sqlite3 reproducible db
-try:
- conn_udd = start_udd_connection()
+conn_udd = start_udd_connection()
# do the db querying
amount = int(query_db('SELECT count(name) FROM sources')[0][0])
diff --git a/bin/reproducible_html_packages.py b/bin/reproducible_html_packages.py
index ea38fc2f..242c44a9 100755
--- a/bin/reproducible_html_packages.py
+++ b/bin/reproducible_html_packages.py
@@ -133,9 +133,8 @@ def process_packages(packages, no_clean=False):
generate the /rb-pkg/package.html page
packages should be a list
"""
- try:
- bugs = get_bugs()
- log.debug(str(len(bugs)) + ' bugs found: ' + str(bugs))
+ bugs = get_bugs()
+ log.debug(str(len(bugs)) + ' bugs found: ' + str(bugs))
total = len(packages)
log.info('Generating the pages of ' + str(total) + ' package(s)')
for pkg in sorted(packages):
@@ -145,10 +144,7 @@ def process_packages(packages, no_clean=False):
' built at ' + build_date)
links, default_view = gen_extra_links(pkg, version)
- try:
- bugs_links = gen_bugs_links(pkg, bugs)
- else
- bugs_links = ""
+ bugs_links = gen_bugs_links(pkg, bugs)
status, icon = join_status_icon(status, pkg, version)
html = html_package_page.substitute(package=pkg,