Part of lp.soyuz.adapters.overrides View In Hierarchy
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. |
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.
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.