l.s.i.b.IBinaryPackageBuildView(IPackageBuild) : interface documentation

Part of lp.soyuz.interfaces.binarypackagebuild View In Hierarchy

Known subclasses: lp.soyuz.interfaces.webservice.IBinaryPackageBuild

A Build interface for items requiring launchpad.View.
Int id Undocumented
Int source_package_release_id Undocumented
Int distro_arch_series_id Undocumented
Bool arch_indep Undocumented
Attribute distro_series Direct parent needed by CanonicalURL
Attribute distributionsourcepackagerelease The page showing the details for this sourcepackagerelease in this distribution.
Attribute binarypackages A list of binary packages that resulted from this build, not limited and ordered by name.
Attribute distroarchseriesbinarypackages A list of distroarchseriesbinarypackages that resulted from thisbuild, ordered by name.
Attribute upload_changesfile The LibraryFileAlias object containing the changes file which was originally uploaded with the results of this build. It's 'None' if it is build imported by Gina.
Attribute buildinfo The LibraryFileAlias object containing build information for this build, if any.
Attribute package_upload The PackageUpload record corresponding to the original upload of the binaries resulted from this build. It's 'None' if it is a build imported by Gina.
Method updateDependencies Update the build-dependencies line within the targeted context.
Method __getitem__ Mapped to getBinaryPackageRelease.
Method getBinaryPackageRelease Return the binary package from this build with the given name, or
Method createBinaryPackageRelease Create and return a BinaryPackageRelease.
Method getFileByName Return the corresponding ILibraryFileAlias in this context.
Method getBinaryPackageFileByName Return the corresponding IBinaryPackageFile in this context.
Method getBinaryPackageNamesForDisplay Retrieve the build's binary package names for display purposes.
Method getBinaryFilesForDisplay Retrieve the build's `IBinaryPackageFile`s for display purposes.
Method getLatestSourcePublication The latest source publication corresponding to this build.

Inherited from IPackageBuild:

Object upload_log Undocumented
Attribute current_component Component where the source related to this build was last published.
Method verifySuccessfulUpload Verify that the upload of this build completed succesfully.
Method storeUploadLog Store the given content as the build upload_log.
Method notify Notify current build state to related people via email.
Method getUploader Return the person responsible for the upload.

Inherited from IBuildFarmJob (via IPackageBuild):

Attribute build_farm_job Generic build farm job record
Bool virtualized The virtualization setting required by this build farm job. This should be None for job types that do not care whether they run virtualized.
Bool is_private Whether the build should be treated as private.
Choice job_type The specific type of job.
Attribute build_cookie A string which uniquely identifies the job in the build farm.
Int failure_count Number of consecutive failures for this job.
Method setLog Set the LibraryFileAlias that contains the job log.
Method updateStatus Update job metadata when the build status changes.
Method gotFailure Increment the failure_count for this job.
Method calculateScore Calculate the build queue priority for this job.
Method estimateDuration Estimate the build duration.
Method queueBuild Create a BuildQueue entry for this build.
Attribute was_built Whether or not modified by the builddfarm.
Attribute external_dependencies Newline-separated list of repositories to be used to retrieve any external build-dependencies when performing this build.
id =
Undocumented
source_package_release_id =
Undocumented
distro_arch_series_id =
Undocumented
arch_indep =
Undocumented
distro_series =
Direct parent needed by CanonicalURL
distributionsourcepackagerelease =
The page showing the details for this sourcepackagerelease in this distribution.
binarypackages =
A list of binary packages that resulted from this build, not limited and ordered by name.
distroarchseriesbinarypackages =
A list of distroarchseriesbinarypackages that resulted from thisbuild, ordered by name.
upload_changesfile =
The LibraryFileAlias object containing the changes file which was originally uploaded with the results of this build. It's 'None' if it is build imported by Gina.
buildinfo =
The LibraryFileAlias object containing build information for this build, if any.
package_upload =
The PackageUpload record corresponding to the original upload of the binaries resulted from this build. It's 'None' if it is a build imported by Gina.
def updateDependencies():
Update the build-dependencies line within the targeted context.
def __getitem__(name):
Mapped to getBinaryPackageRelease.
def getBinaryPackageRelease(name):
Return the binary package from this build with the given name, or raise NotFoundError if no such package exists.
def createBinaryPackageRelease(binarypackagename, version, summary, description, binpackageformat, component, section, priority, installedsize, architecturespecific, shlibdeps=None, depends=None, recommends=None, suggests=None, conflicts=None, replaces=None, provides=None, pre_depends=None, enhances=None, breaks=None, essential=False, debug_package=None, user_defined_fields=None, homepage=None):
Create and return a BinaryPackageRelease.

The binarypackagerelease will be attached to this specific build.

def getFileByName(filename):
Return the corresponding `ILibraryFileAlias` in this context.

The following file types (and extension) can be looked up in the
archive context:

 * Binary changesfile: '.changes';
 * Build logs: '.txt.gz';
 * Build upload logs: '_log.txt';

:param filename: exactly filename to be looked up.

:raises AssertionError if the given filename contains a unsupported
    filename and/or extension, see the list above.
:raises NotFoundError if no file could not be found.

:return the corresponding `ILibraryFileAlias` if the file was found.
def getBinaryPackageFileByName(filename):
Return the corresponding IBinaryPackageFile in this context.
Parametersfilenamethe filename to look up.
Returnsthe corresponding IBinaryPackageFile if it was found.
def getBinaryPackageNamesForDisplay():
Retrieve the build's binary package names for display purposes.
Returnsa result set of (IBinaryPackageRelease, IBinaryPackageName) ordered by name and IBinaryPackageRelease.id.
def getBinaryFilesForDisplay():
Retrieve the build's `IBinaryPackageFile`s for display purposes.

Also prefetches other related objects needed for display.

:return: a result set of (`IBinaryPackageRelease`,
    `IBinaryPackageFile`, `ILibraryFileAlias`, `ILibraryFileContent`).
@operation_returns_entry(ISourcePackagePublishingHistory)
@export_read_operation()
@operation_for_version('devel')
def getLatestSourcePublication():
The latest source publication corresponding to this build.

Unlike current_source_publication, this returns publications even if they are no longer active.

ReturnsAn ISourcePackagePublishingHistory, or None if no corresponding source publication can be located (which is a bug, but is true for some old production builds).
API Documentation for Launchpad, generated by pydoctor at 2019-08-23 00:00:13.