310
310
def preloadBuildsData(cls, builds):
312
312
from lp.code.model.sourcepackagerecipe import SourcePackageRecipe
313
314
SourcePackageRecipeBuild.prefetchBuildqueueRecord(builds)
314
315
package_builds = load_related(
315
316
PackageBuild, builds, ['package_build_id'])
316
320
archives = load_related(Archive, package_builds, ['archive_id'])
317
321
load_related(Person, archives, ['ownerID'])