l.r.m.d._MirrorSeriesMixIn : class documentation

Part of lp.registry.model.distributionmirror View In Hierarchy

Known subclasses: lp.registry.model.distributionmirror.MirrorDistroArchSeries, lp.registry.model.distributionmirror.MirrorDistroSeriesSource

A class containing some commonalities between MirrorDistroArchSeries and MirrorDistroSeriesSource.

This class is not meant to be used alone. Instead, both MirrorDistroSeriesSource and MirrorDistroArchSeries should inherit from it and override the methods and attributes that say so.

Method getLatestPublishingEntry Return the publishing entry with the most recent datepublished.
Method getURLsToCheckUpdateness See IMirrorDistroSeriesSource or IMirrorDistroArchSeries.
Method _getPackageReleaseURLFromPublishingRecord Given a publishing record, return a dictionary mapping
def _getPackageReleaseURLFromPublishingRecord(self, publishing_record):
Given a publishing record, return a dictionary mapping MirrorFreshness items to URLs of files on this mirror.

Must be overwritten on subclasses.

def getLatestPublishingEntry(self, time_interval):
Return the publishing entry with the most recent datepublished.

Time interval must be a tuple of the form (start, end), and only records whose datepublished is between start and end are considered.

def getURLsToCheckUpdateness(self, when=None):
See IMirrorDistroSeriesSource or IMirrorDistroArchSeries.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.