Part of lp.soyuz.scripts.gina.handlers View In Hierarchy
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. |
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.
Returns the sourcepackagerelease if exists or none if not.