l.s.m.q.PackageUpload(SQLBase) : class documentation

Part of lp.soyuz.model.queue View In Hierarchy

A Queue item for the archive uploader.
Method __init__ Extended version of the SQLObjectBase constructor.
Method sources Undocumented
Method sourceFileUrls See IPackageUpload.
Method builds Undocumented
Method binaryFileUrls See IPackageUpload.
Method changes_file_url Undocumented
Method getSourceBuild Undocumented
Method customfiles Undocumented
Method custom_file_urls See IPackageUpload.
Method customFileUrls See IPackageUpload.
Method getBinaryProperties See IPackageUpload.
Method signing_key Undocumented
Method copy_source_archive See IPackageUpload.
Method getFileByName See IPackageUpload.
Method setUnapproved See IPackageUpload.
Method setAccepted See IPackageUpload.
Method setDone See IPackageUpload.
Method setRejected See IPackageUpload.
Method acceptFromUploader See IPackageUpload.
Method acceptFromQueue See IPackageUpload.
Method rejectFromQueue See IPackageUpload.
Method contains_source See IPackageUpload.
Method contains_build See IPackageUpload.
Method contains_copy See IPackageUpload.
Method from_build Undocumented
Method contains_installer See IPackageUpload.
Method contains_translation See IPackageUpload.
Method contains_upgrader See IPackageUpload.
Method contains_ddtp See IPackageUpload.
Method contains_uefi See IPackageUpload.
Method contains_signing See IPackageUpload.
Method package_name See IPackageUpload.
Method package_version See IPackageUpload.
Method component_name See IPackageUpload.
Method section_name See IPackageUpload.
Method displayname See IPackageUpload.
Method displayarchs See IPackageUpload
Method displayversion See IPackageUpload
Method sourcepackagerelease See IPackageUpload.
Method realiseUpload See IPackageUpload.
Method addSearchableNames Undocumented
Method addSearchableVersions Undocumented
Method addSource See IPackageUpload.
Method addBuild See IPackageUpload.
Method addCustom See IPackageUpload.
Method isPPA See IPackageUpload.
Method findSourcePublication Find the SourcePackagePublishingHistory for this build.
Method findPersonToNotify Find the right person to notify about this upload.
Method notify See IPackageUpload.
Method components See IPackageUpload.
Method concrete_package_copy_job See IPackageUpload.
Method overrideSource See IPackageUpload.
Method overrideBinaries See IPackageUpload.
Method _checkForBinariesinDestinationArchive Check for existing binaries (in destination archive) for all binary
Method _validateBuildsForSource Check if the sourcepackagerelease generates at least one build.
Method _giveKarma Assign karma as appropriate for an accepted upload.
Method _acceptSyncFromQueue Accept a sync upload from the queue.
Method _acceptNonSyncFromQueue Accept a "regular" upload from the queue.
Method _isSingleSourceUpload Return True if this upload contains only a single source.
Method _customFormats Return the custom upload formats contained in this upload.
Method _appendSearchables Undocumented
Method _getChangesDict Return a dictionary with changes file tags in it.
Method _nameToComponent Helper to convert a possible string component to IComponent.
Method _nameToSection Helper to convert a possible string section to ISection.
Method _nameToPriority Helper to convert a possible string priority to its enum.
Method _overrideSyncSource Override source on the upload's PackageCopyJob, if any.
Method _overrideNonSyncSource Override sources on a source upload.
Method _filterBinaryChanges Process a binary changes mapping into a more convenient form.

Inherited from SQLBase:

Method __repr__ Undocumented
Method destroySelf Undocumented
Method __eq__ Equality operator.
Method __ne__ Inverse of __eq__.
Method __storm_invalidated__ Flush cached properties.
Class Method _get_store Undocumented
def __init__(self, *args, **kwargs):
Extended version of the SQLObjectBase constructor.

We force use of the master Store.

We refetch any parameters from different stores from the correct master Store.

@cachedproperty
def sources(self):
Undocumented
def sourceFileUrls(self):
See IPackageUpload.
@cachedproperty
def builds(self):
Undocumented
def binaryFileUrls(self):
See IPackageUpload.
@property
def changes_file_url(self):
Undocumented
def getSourceBuild(self):
Undocumented
@cachedproperty
def customfiles(self):
Undocumented
@property
def custom_file_urls(self):
See IPackageUpload.
def customFileUrls(self):
See IPackageUpload.
def getBinaryProperties(self):
See IPackageUpload.
@cachedproperty
def signing_key(self):
Undocumented
@property
def copy_source_archive(self):
See IPackageUpload.
def getFileByName(self, filename):
See IPackageUpload.
def setUnapproved(self):
See IPackageUpload.
def setAccepted(self):
See IPackageUpload.
def _checkForBinariesinDestinationArchive(self, builds):
Check for existing binaries (in destination archive) for all binary uploads to be accepted.

Before accepting binary uploads we check whether any of the binaries already exists in the destination archive and raise an exception (QueueInconsistentStateError) if this is the case.

The only way to find pre-existing binaries is to match on binary package file names.

def setDone(self):
See IPackageUpload.
def setRejected(self):
See IPackageUpload.
def _validateBuildsForSource(self, sourcepackagerelease, builds):
Check if the sourcepackagerelease generates at least one build.
RaisesNonBuildableSourceUploadErrorwhen the uploaded source doesn't result in any builds in its targeted distroseries.
def _giveKarma(self):
Assign karma as appropriate for an accepted upload.
def acceptFromUploader(self, changesfile_path, logger=None):
See IPackageUpload.
def _acceptSyncFromQueue(self):
Accept a sync upload from the queue.
def _acceptNonSyncFromQueue(self):
Accept a "regular" upload from the queue.

This is the normal case, for uploads that are not delayed and are not attached to package copy jobs.

def acceptFromQueue(self, user=None):
See IPackageUpload.
def rejectFromQueue(self, user, comment=None):
See IPackageUpload.
def _isSingleSourceUpload(self):
Return True if this upload contains only a single source.
@cachedproperty
def contains_source(self):
See IPackageUpload.
@cachedproperty
def contains_build(self):
See IPackageUpload.
@cachedproperty
def contains_copy(self):
See IPackageUpload.
@cachedproperty
def from_build(self):
Undocumented
@cachedproperty
def _customFormats(self):
Return the custom upload formats contained in this upload.
@cachedproperty
def contains_installer(self):
See IPackageUpload.
@cachedproperty
def contains_translation(self):
See IPackageUpload.
@cachedproperty
def contains_upgrader(self):
See IPackageUpload.
@cachedproperty
def contains_ddtp(self):
See IPackageUpload.
@cachedproperty
def contains_uefi(self):
See IPackageUpload.
@cachedproperty
def contains_signing(self):
See IPackageUpload.
@property
def package_name(self):
See IPackageUpload.
@property
def package_version(self):
See IPackageUpload.
@property
def component_name(self):
See IPackageUpload.
@property
def section_name(self):
See IPackageUpload.
@cachedproperty
def displayname(self):
See IPackageUpload.
@cachedproperty
def displayarchs(self):
See IPackageUpload
@cachedproperty
def displayversion(self):
See IPackageUpload
@cachedproperty
def sourcepackagerelease(self):
See IPackageUpload.
def realiseUpload(self, logger=None):
See IPackageUpload.
def _appendSearchables(self, existing, new):
Undocumented
def addSearchableNames(self, names):
Undocumented
def addSearchableVersions(self, versions):
Undocumented
def addSource(self, spr):
See IPackageUpload.
def addBuild(self, build):
See IPackageUpload.
def addCustom(self, library_file, custom_type):
See IPackageUpload.
def isPPA(self):
See IPackageUpload.
def _getChangesDict(self, changes_file_object=None):
Return a dictionary with changes file tags in it.
def findSourcePublication(self):
Find the SourcePackagePublishingHistory for this build.
def findPersonToNotify(self):
Find the right person to notify about this upload.
def notify(self, status=None, summary_text=None, changes_file_object=None, logger=None):
See IPackageUpload.
@property
def components(self):
See IPackageUpload.
@cachedproperty
def concrete_package_copy_job(self):
See IPackageUpload.
def _nameToComponent(self, component):
Helper to convert a possible string component to IComponent.
def _nameToSection(self, section):
Helper to convert a possible string section to ISection.
def _nameToPriority(self, priority):
Helper to convert a possible string priority to its enum.
def _overrideSyncSource(self, new_component, new_section, allowed_components):
Override source on the upload's PackageCopyJob, if any.
def _overrideNonSyncSource(self, new_component, new_section, allowed_components):
Override sources on a source upload.
def overrideSource(self, new_component=None, new_section=None, allowed_components=None, user=None):
See IPackageUpload.
def _filterBinaryChanges(self, changes):
Process a binary changes mapping into a more convenient form.
def overrideBinaries(self, changes, allowed_components=None, user=None):
See IPackageUpload.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.