From 066b6abaaab327458bd7dc76524e2430d38b8f5f Mon Sep 17 00:00:00 2001 From: InsanePrawn Date: Mon, 9 Jan 2023 03:20:21 +0100 Subject: [PATCH] distro/distro: add `scan` parameter to get_base_distro() --- distro/distro.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/distro/distro.py b/distro/distro.py index c321b8e..326056a 100644 --- a/distro/distro.py +++ b/distro/distro.py @@ -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: