API does not include Builds for sources that were copied from a prior release

Bug #538883 reported by Kees Cook
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Launchpad itself
Triaged
Low
Unassigned

Bug Description

Similar to bug 443353, there are no build records associated with a source package that has been copied from a prior release.

For example: https://launchpad.net/ubuntu/+source/cdrkit

cdrkit version 9:1.1.9-1ubuntu2 in Lucid came from Karmic, yet lacks the build records when viewed from Lucid's perspective.

Revision history for this message
Julian Edwards (julian-edwards) wrote :

Isn't that sort of right though? It wasn't build in lucid.

Or to put it another way, isn't it nice to see that it was copied from the previous series rather than build in it?

Revision history for this message
Julian Edwards (julian-edwards) wrote :

sigh s/build/built/

Revision history for this message
Julian Edwards (julian-edwards) wrote :

It would be good to discuss your use cases in this scenario so I can get a better idea of what you're trying to do :)

Changed in soyuz:
status: New → Incomplete
Kees Cook (kees)
Changed in soyuz:
status: Incomplete → New
Revision history for this message
Kees Cook (kees) wrote :

My use-case is "download the build for Lucid's 'foo' package":

def get_build_url(pkg, release):
    series = ubuntu.getSeries(name_or_version=release)
    source = archive.getPublishedSources(status='Published', distro_series=series, pocket='Release', exact_match=True, source_name=pkg)
    for build in source_item.getBuilds():
        if build.arch_tag == arch:
            return build.build_log_url

This ends up not working, and instead I need to walk all publications in order to find the first time there is actually a build record:

    for src in archive.getPublishedSources(status='Published', exact_match=True, source_name=source.source_package_name):
        if src.source_package_version == source_item.source_package_version:
            for build in src.getBuilds():
                if build.arch_tag == arch:
                    return build.build_log_url

I guess this might be "by design", but that means that when prior releases vanish, so do the build records? Anyway, it's just wishlist really, since I can work around it; I was just hoping to speed up the queries.

Revision history for this message
Julian Edwards (julian-edwards) wrote :

Ok

IBuild has a distroseries property internally that's not exported on the API, so we'll do that so that builds can be distinguished from the current series

Then, we can provide a way of getting a build for a source regardless of the current series.

Changed in soyuz:
status: New → Triaged
importance: Undecided → Low
tags: added: api soyuz-build
William Grant (wgrant)
tags: added: package-copies
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.