From 1d9f8239a03f25aab93ab4d9eeec6f639faf3ad6 Mon Sep 17 00:00:00 2001 From: InsanePrawn Date: Wed, 1 Dec 2021 20:30:55 +0100 Subject: [PATCH] distro.py: don't scan repos by default --- distro.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/distro.py b/distro.py index 2ad600d..d6699af 100644 --- a/distro.py +++ b/distro.py @@ -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]()