diff options
author | Holger Levsen <holger@layer-acht.org> | 2015-10-04 01:43:06 +0200 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2015-10-04 01:43:06 +0200 |
commit | f4c68f1d927c2aabaf73014b02c81f2067161628 (patch) | |
tree | e7d6cca7ed9e38a836478d00e54634fed855ce73 /bin/reproducible_common.py | |
parent | ee9848202ab712d32bc9f9dbd1f7d10497a56987 (diff) | |
download | jenkins.debian.net-f4c68f1d927c2aabaf73014b02c81f2067161628.tar.xz |
reproducible: refactor and fix status icons for all stati
Diffstat (limited to 'bin/reproducible_common.py')
-rwxr-xr-x | bin/reproducible_common.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/reproducible_common.py b/bin/reproducible_common.py index f621beaa..fcb35f02 100755 --- a/bin/reproducible_common.py +++ b/bin/reproducible_common.py @@ -436,15 +436,16 @@ def get_status_icon(status): 'not_for_us': 'weather-few-clouds-night.png', 'untested': 'weather-clear-night.png', 'blacklisted': 'error.png'} + spokenstatus = status if status == 'unreproducible': status = 'FTBR' elif status == 'not for us': status = 'not_for_us' try: - return (status, table[status]) + return (status, table[status], spokenstatus) except KeyError: log.error('Status ' + status + ' not recognized') - return (status, '') + return (status, '', spokenstatus) def strip_epoch(version): """ |