Comment 7 for bug 369112

Revision history for this message
Fabien Tassin (fta) wrote : Re: API export of IDistroSeries.getBuildRecords() should optionally filter on active source publications

something as simple as this is not usable:

        for pkg in ppa.getBuildRecords():
            csp = pkg.current_source_publication
            if not csp:
                continue
            if pkg.buildstate == 'Successfully built':
                continue
            print " %-28s %-8s %-5s %-20s %s" % (csp.source_package_name, csp.distro_series.name, pkg.arch_tag, pkg.buildstate, pkg.build_log_url)

in my case, it takes ~10 minutes, does ~300 HTTP requests, and download more than 10MB, just to display between 0 and 12 lines.