← Back to team overview

launchpad-dev team mailing list archive

Getting the source package from a Build via the API

 

I'm writing a script against the API to more or less mimic what you see on
https://launchpad.net/~user/+archive/ppa/+packages but I *think* that not all
the information I want is exported.

What I'm doing is iterating through all the Build records returned from
.getbuildRecords(pocket='Release') and looking for records with a .buildstate
!= 'Successfully built'.  However, I also want to get the source package
information that was requested to be built.  As near as I can tell, I can
often get this off of Build.current_source_publication, but that's often None,
for reasons I do not fully understand.

E.g. system-config-printer from here:

https://launchpad.net/~pythoneers/+archive/py27stack4/+packages?start=100&batch=50

(hopefully that's the right batch, you apparently cannot generate a url
directly to that build record via the web ui)

What I think I really want is the .source_package_release, but that's not
exported.  I could file a bug against that if that would help (both you and me
:).

Any suggestions?

Thanks,
-Barry

Attachment: signature.asc
Description: PGP signature


Follow ups