From 51090d60544ec7336c7e0250ff6eab43ad154605 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Sun, 4 Oct 2015 00:55:21 +0200 Subject: reproducible: rename join_status_icon() to get_status_icon() and drop unused code --- bin/reproducible_common.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'bin/reproducible_common.py') 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): -- cgit v1.2.3-70-g09d2