summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2009-03-14 15:17:38 (GMT)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2009-03-14 15:17:38 (GMT)
commit04efaeab71653a7286232291e8f44ef3e5c97f27 (patch)
tree2b85bc76210d6b9a05410b8321477755728ba3f3
parente486aae1db1f5cd1fd9e3469425d74c33d1b1017 (diff)
downloadcheck-versions-04efaeab71653a7286232291e8f44ef3e5c97f27.tar.gz
check-versions-04efaeab71653a7286232291e8f44ef3e5c97f27.tar.xz
don't color None in red
-rw-r--r--web_report.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/web_report.py b/web_report.py
index dbc9e4f..c5c5281 100644
--- a/web_report.py
+++ b/web_report.py
@@ -62,7 +62,9 @@ thead tr { background: #555753; color: white; }
def display(distro, distro_version):
version_number = getattr(component, distro).get(distro_version)
- if distro == 'ubuntu' and debian_ver == component.upstream and version_number < debian_ver:
+ if version_number is None:
+ status = 'none'
+ elif distro == 'ubuntu' and debian_ver == component.upstream and version_number < debian_ver:
# Need to sync Ubuntu package on Debian
status = 'needsync'
elif distro == 'ubuntu' and debian_ver < component.upstream and version_number == debian_ver:
@@ -85,7 +87,9 @@ thead tr { background: #555753; color: white; }
if Component.ppa_enabled():
# add Ubuntu stable + PPA
ubuntu_stable_ver = max(component.ubuntu.get(UBUNTU_STABLE), component.ppa.get(UBUNTU_STABLE))
- if ubuntu_stable_ver == component.upstream:
+ if ubuntu_stable_ver is None:
+ status = 'none'
+ elif ubuntu_stable_ver == component.upstream:
status = 'uptodate'
elif ubuntu_stable_ver == component.ubuntu.get(UBUNTU_DEV):
# sync with Ubuntu dev but not with upstream