l.s.m.d.DistributionSourcePackageCache(SQLBase) : class documentation

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

No class docstring
Method distributionsourcepackage See IDistributionSourcePackageCache.
Class Method findCurrentSourcePackageNames Undocumented
Class Method removeOld Delete any cache records for removed packages.
Class Method update Update the package cache for a given set of `ISourcePackageName`s.
Class Method updateOfficialBranches Update the package cache for official branches with given names.
Class Method updateAll Update the source package cache.
Class Method _find The set of all source package info caches for this distribution.

Inherited from SQLBase:

Method __init__ Extended version of the SQLObjectBase constructor.
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
@property
def distributionsourcepackage(self):
See IDistributionSourcePackageCache.
@classmethod
def findCurrentSourcePackageNames(cls, distro, archive):
Undocumented
@classmethod
def _find(cls, distro, archive=_DEFAULT):
The set of all source package info caches for this distribution.

If 'archive' is not given it will return all caches stored for the distribution main archives (PRIMARY and PARTNER).

@classmethod
def removeOld(cls, distro, archive, log):
Delete any cache records for removed packages.

Also purges all existing cache records for disabled archives.

Parametersarchivetarget IArchive, or None to consider official branches.
logthe context logger object able to print DEBUG level messages.
@classmethod
def update(cls, distro, sourcepackagenames, archive, with_binaries=True, log=None):
Update the package cache for a given set of `ISourcePackageName`s.

Cached details include generated binarypackage names, summary
and description fti.
@classmethod
def updateOfficialBranches(cls, distro, sourcepackagenames):
Update the package cache for official branches with given names.

We just cache the names for these.

@classmethod
def updateAll(cls, distro, archive, log, ztm, commit_chunk=500):
Update the source package cache.

Consider every non-REMOVED sourcepackage and entirely skips updates for disabled archives.

:return the number packages updated done

Parametersarchivetarget IArchive;
loglogger object for printing debug level information;
ztmtransaction used for partial commits, every chunk of 'commit_chunk' updates is committed;
commit_chunknumber of updates before commit, defaults to 500.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.