~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/code/model/sourcepackagerecipebuild.py

PreloadĀ lfa.

Show diffs side-by-side

added added

removed removed

Lines of Context:
310
310
    def preloadBuildsData(cls, builds):
311
311
        # Circular imports.
312
312
        from lp.code.model.sourcepackagerecipe import SourcePackageRecipe
 
313
        from canonical.launchpad.database.librarian import LibraryFileAlias
313
314
        SourcePackageRecipeBuild.prefetchBuildqueueRecord(builds)
314
315
        package_builds = load_related(
315
316
            PackageBuild, builds, ['package_build_id'])
 
317
        build_farm_jobs = [
 
318
            build.build_farm_job for build in builds]
 
319
        load_related(LibraryFileAlias, build_farm_jobs, ['log_id'])
316
320
        archives = load_related(Archive, package_builds, ['archive_id'])
317
321
        load_related(Person, archives, ['ownerID'])
318
322
        sprs = load_related(