l.s.s.g.h.SourcePackageHandler : class documentation

Part of lp.soyuz.scripts.gina.handlers View In Hierarchy

SourcePackageRelease Handler class

This class has methods to make the sourcepackagerelease access on the launchpad db a little easier.

Method __init__ Undocumented
Method ensureSourcePackageName Undocumented
Method findUnlistedSourcePackage Try to find a sourcepackagerelease in the archive for the
Method checkSource Check if a sourcepackagerelease is already on lp db.
Method createSourcePackageRelease Create a SourcePackagerelease and db dependencies if needed.
Method _getSourcePackageDataFromDSC Undocumented
Method _getSource Returns a sourcepackagerelease by its name and version.
def __init__(self, distro_name, archive_root, pocket, component_override):
Undocumented
def ensureSourcePackageName(self, name):
Undocumented
def findUnlistedSourcePackage(self, sp_name, sp_version, sp_component, sp_section, distroseries):
Try to find a sourcepackagerelease in the archive for the provided binarypackage data.

The binarypackage data refers to a source package which we cannot find either in the database or in the input data.

This commonly happens when the source package is no longer part of the distribution but a binary built from it is and thus the source is not in Sources.gz but is on the disk. This may also happen if the package has not built yet.

If we fail to find it we return None and the binary importer will handle this in the same way as if the package simply wasn't in the database. I.E. the binary import will fail but the process as a whole will continue okay.

def _getSourcePackageDataFromDSC(self, sp_name, sp_version, sp_component, sp_section):
Undocumented
def checkSource(self, source, version, distroseries):
Check if a sourcepackagerelease is already on lp db.

Returns the sourcepackagerelease if exists or none if not.

def _getSource(self, sourcepackagename, version, distroseries):
Returns a sourcepackagerelease by its name and version.
def createSourcePackageRelease(self, src, distroseries):
Create a SourcePackagerelease and db dependencies if needed.

Returns the created SourcePackageRelease, or None if it failed.

API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.