summaryrefslogtreecommitdiffstats
path: root/bin/reproducible_common.py
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-10-04 00:55:21 +0200
committerHolger Levsen <holger@layer-acht.org>2015-10-04 00:55:32 +0200
commit51090d60544ec7336c7e0250ff6eab43ad154605 (patch)
tree423319a14cfd5a822b758f8c2183d8673d6773ee /bin/reproducible_common.py
parentb179bf2a746856c91fb2e744daa4fbbf85986706 (diff)
downloadjenkins.debian.net-51090d60544ec7336c7e0250ff6eab43ad154605.tar.xz
reproducible: rename join_status_icon() to get_status_icon() and drop unused code
Diffstat (limited to 'bin/reproducible_common.py')
-rwxr-xr-xbin/reproducible_common.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/bin/reproducible_common.py b/bin/reproducible_common.py
index f3251553..f621beaa 100755
--- a/bin/reproducible_common.py
+++ b/bin/reproducible_common.py
@@ -426,7 +426,7 @@ def link_packages(packages, suite, arch):
return html
-def join_status_icon(status, package=None, version=None):
+def get_status_icon(status):
table = {'reproducible' : 'weather-clear.png',
'FTBFS': 'weather-storm.png',
'FTBR' : 'weather-showers-scattered.png',
@@ -440,13 +440,10 @@ def join_status_icon(status, package=None, version=None):
status = 'FTBR'
elif status == 'not for us':
status = 'not_for_us'
- log.debug('Linking status ⇔ icon. package: ' + str(package) + ' @ ' +
- str(version) + ' status: ' + status)
try:
return (status, table[status])
except KeyError:
- log.error('Status of package ' + package + ' (' + status +
- ') not recognized')
+ log.error('Status ' + status + ' not recognized')
return (status, '')
def strip_epoch(version):