l.s.s.c.CustomUploadsCopier : class documentation

Part of lp.soyuz.scripts.custom_uploads_copier View In Hierarchy

Copy PackageUploadCustom objects into a new DistroSeries.
Method __init__ Undocumented
Method isCopyable Is upload the kind of PackageUploadCustom that we can copy?
Method autoApprove Can custom be automatically approved from source_archive?
Method getCandidateUploads Find custom uploads that may need copying.
Method extractSeriesKey Get the relevant fields out of filename for custom_type.
Method getKey Get an indexing key for upload.
Method getLatestUploads Find the latest uploads.
Method isObsolete Is upload superseded by one that the target series already has?
Method isForValidDAS Is upload for a valid DAS for the target series?
Method copyUpload Copy original_upload into self.target_series.
Method copy Copy uploads from source_series-source_pocket.
def __init__(self, target_series, target_pocket=PackagePublishingPocket.RELEASE, target_archive=None):
Undocumented
def isCopyable(self, upload):
Is upload the kind of PackageUploadCustom that we can copy?
def autoApprove(self, custom, source_archive):
Can custom be automatically approved from source_archive?
def getCandidateUploads(self, source_series, source_pocket=PackagePublishingPocket.RELEASE):
Find custom uploads that may need copying.
def extractSeriesKey(self, custom_type, filename):
Get the relevant fields out of filename for custom_type.
def getKey(self, upload):
Get an indexing key for upload.
def getLatestUploads(self, source_series, source_pocket=PackagePublishingPocket.RELEASE):
Find the latest uploads.
Parameterssource_seriesThe DistroSeries whose uploads to get.
source_pocketThe PackagePublishingPocket to inspect.
ReturnsA dict containing the latest uploads, indexed by keys as returned by getKey.
def isObsolete(self, upload, target_uploads):
Is upload superseded by one that the target series already has?
ParametersuploadA PackageUploadCustom from the source series.
target_uploads
def isForValidDAS(self, upload):
Is upload for a valid DAS for the target series?
ParametersuploadA PackageUploadCustom from the source series.
def copyUpload(self, original_upload):
Copy original_upload into self.target_series.
def copy(self, source_series, source_pocket=PackagePublishingPocket.RELEASE):
Copy uploads from source_series-source_pocket.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.