Part of lp.archiveuploader.dscfile View In Hierarchy
Method | __init__ | Construct a DSCFile instance. |
Method | source | Return the DSC source name. |
Method | dsc_version | Return the DSC source version. |
Method | format | Return the DSC format. |
Method | architecture | Return the DSC source architecture. |
Method | binary | Return the DSC claimed binary line. |
Method | verify | Verify the uploaded .dsc file. |
Method | checkFiles | Check if mentioned files are present and match. |
Method | unpackAndCheckSource | Verify uploaded source using dpkg-source. |
Method | storeInDatabase | Store DSC information as a SourcePackageRelease record. |
Method | _getFileByName | Return the corresponding file reference in the policy context. |
Inherited from SourceUploadFile:
Method | filetype | Undocumented |
Method | checkBuild | See PackageUploadFile. |
Inherited from SourceFileMixin (via SourceUploadFile):
Method | is_orig | Undocumented |
Inherited from PackageUploadFile (via SourceUploadFile):
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 SourceUploadFile, 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. |
This takes all NascentUploadFile constructor parameters plus package and version.
Can raise UploadError.
This method is an error generator, i.e, it returns an iterator over all exceptions that are generated while processing DSC file checks.
If the filename ends in '.orig.tar.gz', then we look for it in the distribution primary archive as well, with the PPA file taking precedence in case it's found in both archives.
This is needed so that PPA uploaders don't have to waste bandwidth uploading huge upstream tarballs that are already published in the target distribution.
When the file reference is found, its corresponding LibraryFileAlias and Archive are returned.
Parameters | filename | string containing the exact name of the wanted file. |
Returns | a tuple containing a ILibraryFileAlias corresponding to
the matching file and an Archive where it was published. | |
Raises | NotFoundError when the wanted file could not be found. |
We don't use the NascentUploadFile.verify here, only verify size and checksum.