[jhbuild] [buildbot] don't fail when there is no finished builds
- From: Frederic Peters <fpeters src gnome org>
- To: svn-commits-list gnome org
- Subject: [jhbuild] [buildbot] don't fail when there is no finished builds
- Date: Wed, 6 May 2009 03:38:24 -0400 (EDT)
commit 00da904b53314935b45583668efaebfe12e48eaa
Author: Frederic Peters <fpeters 0d be>
Date: Wed May 6 09:37:33 2009 +0200
[buildbot] don't fail when there is no finished builds
---
jhbuild/buildbot/status/web/__init__.py | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/jhbuild/buildbot/status/web/__init__.py b/jhbuild/buildbot/status/web/__init__.py
index 9936716..c7aa243 100644
--- a/jhbuild/buildbot/status/web/__init__.py
+++ b/jhbuild/buildbot/status/web/__init__.py
@@ -119,9 +119,12 @@ class ProjectsSummary(HtmlResource):
if lastbuild == 'successful':
last_build = builder.getLastFinishedBuild()
- class_ = build_get_class(last_build)
- lastbuild_label = 'Success'
if last_build:
+ class_ = build_get_class(last_build)
+ else:
+ class_ = None
+ lastbuild_label = 'Success'
+ if last_build and class_:
# use a different class/label if make check failed
steps = last_build.getSteps()
for step in reversed(steps):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]