The branch, master has been updated via 9ff770d Cope with previous builds disappearing. from d751b05 Cope with builds already existing.
http://gitweb.samba.org/?p=build-farm.git;a=shortlog;h=master - Log ----------------------------------------------------------------- commit 9ff770d73b8db6e667e310dd62ee699de5025152 Author: Jelmer Vernooij <jel...@samba.org> Date: Sat Nov 13 17:56:39 2010 +0100 Cope with previous builds disappearing. ----------------------------------------------------------------------- Summary of changes: import-and-analyse.py | 10 +++++++--- 1 files changed, 7 insertions(+), 3 deletions(-) Changeset truncated at 500 lines: diff --git a/import-and-analyse.py b/import-and-analyse.py index 07ddcd0..4f99b5c 100755 --- a/import-and-analyse.py +++ b/import-and-analyse.py @@ -104,10 +104,14 @@ for build in buildfarm.get_new_builds(): if opts.verbose >= 1: print "Unable to find previous build for %s,%s,%s" % (build.tree, build.host, build.compiler) # Can't send a nastygram until there are 2 builds.. - continue else: - prev_build = buildfarm.get_build(build.tree, build.host, build.compiler, prev_rev) - check_and_send_mails(build.tree, build.host, build.compiler, build, prev_build) + try: + prev_build = buildfarm.get_build(build.tree, build.host, build.compiler, prev_rev) + except data.NoSuchBuildError: + if opts.verbose >= 1: + print "Previous build %s has disappeared" % prev_build + else: + check_and_send_mails(build.tree, build.host, build.compiler, build, prev_build) if not opts.dry_run: build.remove() -- build.samba.org