Part of lp.soyuz.model.distroseriespackagecache View In Hierarchy
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 |
If 'archive' is not given it will return all caches stored for the distroseries main archives (PRIMARY and PARTNER).
Consider all binarypackages marked as REMOVED.
Also purges all existing cache records for disabled archives.
Parameters | archive | target IArchive . |
log | the context logger object able to print DEBUG level messages. |
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)
Consider all binary package names published in this distro series and entirely skips updates for disabled archives
:return the number of packages updated.
Parameters | archive | target IArchive ; |
log | logger object for printing debug level information; | |
ztm | transaction used for partial commits, every chunk of 'commit_chunk' updates is committed; | |
commit_chunk | number of updates before commit, defaults to 500. |