l.s.a.o.IOverridePolicy(Interface) : interface documentation

Part of lp.soyuz.adapters.overrides View In Hierarchy

Override policy.

An override policy returns overrides suitable for the given archive, distroseries, pocket for source or binary publications.

For example, an implementation might allow existing publications to keep the same component and section as their ancestor publications.

Attribute phased_update_percentage The phased update percentage to apply to binary publications.
Method calculateSourceOverrides Calculate source overrides.
Method calculateBinaryOverrides Calculate binary overrides.
phased_update_percentage =
The phased update percentage to apply to binary publications.
def calculateSourceOverrides(archive, distroseries, pocket, sources):
Calculate source overrides.

:param archive: The target `IArchive`.
:param distroseries: The target `IDistroSeries`.
:param pocket: The target `PackagePublishingPocket`.
:param sources: A dict mapping `ISourcePackageName`s to
    `ISourceOverride`s.

:return: A dict mapping `ISourcePackageName`s to `ISourceOverride`s.
def calculateBinaryOverrides(archive, distroseries, pocket, binaries):
Calculate binary overrides.

:param archive: The target `IArchive`.
:param distroseries: The target `IDistroSeries`.
:param pocket: The target `PackagePublishingPocket`.
:param binaries: A dict mapping (`IBinaryPackageName`, architecturetag)
    pairs to `IBinaryOverride`s. Architecturetag can be None for
    architecture-independent publications.

:return: A dict mapping (`IBinaryPackageName`, architecturetag)
    pairs to `IBinaryOverride`s.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.