use buildfarm get_build function instead of the one of the buildstore
authorMatthieu Patou <mat@matws.net>
Wed, 10 Nov 2010 23:42:24 +0000 (02:42 +0300)
committerMatthieu Patou <mat@matws.net>
Wed, 10 Nov 2010 23:43:08 +0000 (02:43 +0300)
web/build.py

index 5c342ea587bff323746cdf838635223ac2022139..a71e0e64eaf280dc52fff1cee4914c244bc40019 100755 (executable)
@@ -173,7 +173,7 @@ def view_summary(myself, output_type):
         for compiler in compilers:
             for tree in trees:
                 try:
-                    build = db.get_build(tree, host.name.encode("utf-8"), compiler)
+                    build = buildfarm.get_build(tree, host.name.encode("utf-8"), compiler)
                     status = build_status_html(myself, build)
                 except data.NoSuchBuildError:
                     continue
@@ -275,7 +275,7 @@ def view_recent_builds(myself, tree, sort_by):
     for host in hosts.values():
         for compiler in compilers:
             try:
-                build = db.get_build(tree, host.name.encode("utf-8"), compiler)
+                build = buildfarm.get_build(tree, host.name.encode("utf-8"), compiler)
                 status = build_status_html(myself, build)
             except data.NoSuchBuildError:
                 pass
@@ -393,7 +393,7 @@ def view_build(myself, tree, host, compiler, rev, plain_logs=False):
     uname = ""
     cflags = ""
     config = ""
-    build = db.get_build(tree, host, compiler, rev)
+    build = buildfarm.get_build(tree, host, compiler, rev)
     age_mtime = build.age_mtime()
     (revision, commit_revision, revision_time) = build.revision_details()
     if commit_revision:
@@ -522,7 +522,7 @@ def view_host(myself, output_type, *requested_hosts):
         for compiler in compilers:
             for tree in sorted(trees.keys()):
                 try:
-                    build = db.get_build(tree, host, compiler)
+                    build = buildfarm.get_build(tree, host, compiler)
                 except data.NoSuchBuildError:
                     pass
                 else: