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

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

No class docstring
Class Method findCurrentBinaryPackageNames Undocumented
Class Method removeOld Delete any records that are no longer applicable.
Class Method updateAll Update the binary package cache
Class Method _find All of the cached binary package records for this distroseries.
Class Method _update Update the package cache for a given set of `IBinaryPackageName`s.

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
@classmethod
def findCurrentBinaryPackageNames(cls, archive, distroseries):
Undocumented
@classmethod
def _find(cls, distroseries, archive=None):
All of the cached binary package records for this distroseries.

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

@classmethod
def removeOld(cls, distroseries, archive, log):
Delete any records that are no longer applicable.

Consider all binarypackages marked as REMOVED.

Also purges all existing cache records for disabled archives.

Parametersarchivetarget IArchive.
logthe context logger object able to print DEBUG level messages.
@classmethod
def _update(cls, distroseries, binarypackagenames, archive, log):
Update the package cache for a given set of `IBinaryPackageName`s.

'log' is required, it should be a logger object able to print
DEBUG level messages.
'ztm' is the current trasaction manager used for partial commits
(in full batches of 100 elements)
@classmethod
def updateAll(cls, distroseries, archive, log, ztm, commit_chunk=500):
Update the binary package cache

Consider all binary package names published in this distro series and entirely skips updates for disabled archives

:return the number of packages updated.

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.