[SCM] build.samba.org - branch master updated

Jelmer Vernooij jelmer at samba.org
Sun Nov 21 08:07:18 MST 2010


The branch, master has been updated
       via  bd8f53b Cope with a single revision having multiple builds.
      from  ac9e83b Fix recent build page.

http://gitweb.samba.org/?p=build-farm.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit bd8f53b335bc29effb260654cbae7cc19a03612c
Author: Jelmer Vernooij <jelmer at samba.org>
Date:   Sun Nov 21 16:04:31 2010 +0100

    Cope with a single revision having multiple builds.

-----------------------------------------------------------------------

Summary of changes:
 buildfarm/sqldb.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)


Changeset truncated at 500 lines:

diff --git a/buildfarm/sqldb.py b/buildfarm/sqldb.py
index b283b86..934a7ad 100644
--- a/buildfarm/sqldb.py
+++ b/buildfarm/sqldb.py
@@ -225,8 +225,8 @@ class StormCachingBuildResultStore(BuildResultStore):
             StormBuild.tree == tree,
             StormBuild.host == host,
             StormBuild.compiler == compiler,
-            StormBuild.revision == revision)
-        ret = result.one()
+            StormBuild.revision == revision).order_by(Desc(StormBuild.upload_time))
+        ret = result.first()
         if ret is None:
             raise NoSuchBuildError(tree, host, compiler, revision)
         return ret


-- 
build.samba.org


More information about the samba-cvs mailing list