distro.py: don't scan repos by default

This commit is contained in:
InsanePrawn 2021-12-01 20:30:55 +01:00
parent f5e6590e29
commit 1d9f8239a0

View file

@ -88,7 +88,7 @@ class Repo(RepoInfo):
self.scanned = True
def __init__(self, name: str, url_template: str, arch: str, options={}, scan=True):
def __init__(self, name: str, url_template: str, arch: str, options={}, scan=False):
self.packages = {}
self.name = name
self.url_template = url_template
@ -109,7 +109,7 @@ class Distro:
repos: dict[str, Repo]
arch: str
def __init__(self, arch: str, repo_infos: dict[str, RepoInfo], scan=True):
def __init__(self, arch: str, repo_infos: dict[str, RepoInfo], scan=False):
assert (arch in ARCHES)
self.arch = arch
self.repos = dict[str, Repo]()