l.a.b.BuildInfoFile(PackageUploadFile, SignableTagFile) : class documentation

Part of lp.archiveuploader.buildinfofile View In Hierarchy

Represents an uploaded build information file.
Method __init__ Check presence of the component and section from an uploaded_file.
Method is_sourceful Undocumented
Method is_binaryful Undocumented
Method is_archindep Undocumented
Method verify Verify the uploaded buildinfo file.
Method checkBuild See PackageUploadFile.
Method storeInDatabase Create and return the corresponding LibraryFileAlias reference.

Inherited from PackageUploadFile:

Method component Return an IComponent for self.component.name.
Method section Return an ISection for self.section_name.
Method extractUserDefinedFields Extract the user defined fields out of a control file list.

Inherited from NascentUploadFile (via PackageUploadFile):

Method content_type The content type for this file.
Method filename Return the NascentUpload filename.
Method dirname Return the NascentUpload filename.
Method exists_on_disk Whether or not the file is present on disk.
Method checkNameIsTaintFree Verify if the filename contains forbidden characters.
Method checkSizeAndCheckSum Check the size and checksums of the nascent file.

Inherited from SignableTagFile:

Method signer Undocumented
Method parse Parse the tag file, optionally verifying the signature.
Method parseAddress Parse an address, using the policy to decide if we should add a
Method _verifySignature Verify the signature on the file content.
def __init__(self, filepath, checksums, size, component_and_section, priority_name, package, version, changes, policy, logger):
Check presence of the component and section from an uploaded_file.

They need to satisfy at least the NEW queue constraints that includes SourcePackageRelease creation, so component and section need to exist. Even if they might be overridden in the future.

@property
def is_sourceful(self):
Undocumented
@property
def is_binaryful(self):
Undocumented
@property
def is_archindep(self):
Undocumented
def verify(self):
Verify the uploaded buildinfo file.

It returns an iterator over all the encountered errors and warnings.

def checkBuild(self, build):
See PackageUploadFile.
def storeInDatabase(self):
Create and return the corresponding LibraryFileAlias reference.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.