l.a.d.ArchSpecificPublicationsCache : class documentation

Part of lp.archivepublisher.domination View In Hierarchy

Cache to track which releases have arch-specific publications.

This is used for second-pass binary domination: architecture-independent binary publications cannot be superseded as long as any architecture-dependent binary publications built from the same source package release are still active. Thus such arch-indep publications are reprieved from domination.

This class looks up whether publications for a release need that reprieve. That only needs to be looked up in the database once per (source package release, archive, distroseries, pocket). Hence this cache.

Method __init__ Undocumented
Static Method getKey Extract just the relevant bits of information from a bpph.
Method hasArchSpecificPublications Does bpph have active, arch-specific publications?
Static Method _lookUp Look up an answer in the database.
def __init__(self):
Undocumented
@staticmethod
def getKey(bpph):
Extract just the relevant bits of information from a bpph.
def hasArchSpecificPublications(self, bpph):
Does bpph have active, arch-specific publications?

If so, the dominator will want to reprieve bpph.

@staticmethod
def _lookUp(spr, archive, distroseries, pocket):
Look up an answer in the database.
API Documentation for Launchpad, generated by pydoctor at 2018-05-28 00:00:05.