distro/distro: add scan parameter to get_base_distro()

This commit is contained in:
InsanePrawn 2023-01-09 03:20:21 +01:00
parent 9f5bafab57
commit 066b6abaaa

View file

@ -72,9 +72,9 @@ class RemoteDistro(Distro[RemoteRepo]):
return RemoteRepo(**kwargs)
def get_base_distro(arch: str) -> RemoteDistro:
def get_base_distro(arch: str, scan: bool = False) -> RemoteDistro:
repos = {name: RepoInfo(url_template=url) for name, url in BASE_DISTROS[arch]['repos'].items()}
return RemoteDistro(arch=arch, repo_infos=repos, scan=False)
return RemoteDistro(arch=arch, repo_infos=repos, scan=scan)
def get_kupfer(arch: str, url_template: str, scan: bool = False) -> Distro: