Changeset View
Changeset View
Standalone View
Standalone View
swh/lister/debian/lister.py
Show All 29 Lines | |||||
class DebianLister(ListerHttpTransport, ListerBase): | class DebianLister(ListerHttpTransport, ListerBase): | ||||
MODEL = Package | MODEL = Package | ||||
PATH_TEMPLATE = None | PATH_TEMPLATE = None | ||||
LISTER_NAME = 'debian' | LISTER_NAME = 'debian' | ||||
instance = 'debian' | instance = 'debian' | ||||
def __init__(self, override_config=None): | def __init__(self, override_config=None): | ||||
ListerHttpTransport.__init__(self, api_baseurl="bogus") | ListerHttpTransport.__init__(self, url="notused") | ||||
ListerBase.__init__(self, override_config=override_config) | ListerBase.__init__(self, override_config=override_config) | ||||
def transport_request(self, identifier): | def transport_request(self, identifier): | ||||
"""Subvert ListerHttpTransport.transport_request, to try several | """Subvert ListerHttpTransport.transport_request, to try several | ||||
index URIs in turn. | index URIs in turn. | ||||
The Debian repository format supports several compression algorithms | The Debian repository format supports several compression algorithms | ||||
across the ages, so we try several URIs. | across the ages, so we try several URIs. | ||||
▲ Show 20 Lines • Show All 191 Lines • Show Last 20 Lines |