Part of lp.registry.scripts.distributionmirror_prober View In Hierarchy
Method | __init__ | Undocumented |
Method | deleteMirrorSeries | Delete the mirror for self.series, self.pocket and self.component. |
Method | ensureMirrorSeries | Make sure we have a mirror for self.series, self.pocket and |
Method | updateMirrorFreshness | Update the freshness of this MirrorDistro{ArchSeries,SeriesSource}. |
Method | setMirrorFreshness | Update the freshness of the given arch or source mirror. |
Method | logError | Undocumented |
Method | _getSeriesPocketAndComponentDescription | Return a string containing the name of the series, pocket and |
Inherited from LoggingMixin:
Method | logMessage | Append a UTC timestamp to the message returned by the mirror |
Method | _getTime | Return the current UTC time. |
If the failure we get from twisted is not a timeout, a bad response code or a connection skipped, then this failure is propagated.
This is done by issuing HTTP HEAD requests on that mirror looking for some packages found in our publishing records. Then, knowing what packages the mirror contains and when these packages were published, we can have an idea of when that mirror was last updated.
The freshness is changed only if the given freshness refers to a more recent date than the current one.