l.a.r.RosettaTranslationsUpload(CustomUpload) : class documentation

Part of lp.archivepublisher.rosetta_translations View In Hierarchy

Rosetta Translations tarball upload.

All other CustomUploads extract and copy files when processed, RosettaTranslationsUpload is a special case that involves more than copying the files, so it triggers a job that processes them accordingly. For this reason, all methods from CustomUpload that deal with files are bypassed.

Class Method publish See ICustomUploadHandler.
Method process Process the upload and install it into the archive.
Static Method parsePath Parses the lfa filename.
Method setComponents Sets the package name parsed from the lfa filename.
Method setTargetDirectory Set self.targetdir based on parameters.
Class Method getSeriesKey Get a unique key for instances of this custom upload type.
Method shouldInstall Returns True if the given filename should be installed.
Method _findSourcePublication Find destination source publishing record of the packageupload.

Inherited from CustomUpload:

Method __init__ Undocumented
Method checkForConflicts Check for conflicts with existing publications in the archive.
Method verifyBeforeExtracting Verify the tarball before extracting it.
Method extract Extract the custom upload to a temporary directory.
Method ensurePath Ensure the parent directory exists.
Method shouldSign Returns True if the given filename should be signed.
Method sign Sign a file.
Method installFiles Install the files from the custom upload to the archive.
Method fixCurrentSymlink Update the 'current' symlink and prune old entries.
Method cleanup Clean up the temporary directory
Method _buildInstallPaths Build and return paths used to install files.
@classmethod
def publish(cls, packageupload, libraryfilealias, logger=None):
See ICustomUploadHandler.
def process(self, packageupload, libraryfilealias):
Process the upload and install it into the archive.
@staticmethod
def parsePath(tarfile_name):
Parses the lfa filename.
def setComponents(self, tarfile_name):
Sets the package name parsed from the lfa filename.
def setTargetDirectory(self, archive, tarfile_path, distroseries):
Set self.targetdir based on parameters.

This should also set self.version and self.arch (if applicable) as a side-effect.

@classmethod
def getSeriesKey(cls, tarfile_path):
Get a unique key for instances of this custom upload type.

The key should differ for any uploads that may be published simultaneously, but should be identical for (e.g.) different versions of the same type of upload on the same architecture in the same series. Returns None on failure to parse tarfile_path.

def shouldInstall(self, filename):
Returns True if the given filename should be installed.
def _findSourcePublication(self, packageupload):
Find destination source publishing record of the packageupload.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.