From aedab4df739a8a90c5b08a166b9378d362ed82c4 Mon Sep 17 00:00:00 2001 From: Caleb Connolly Date: Mon, 10 Jun 2024 04:34:59 +0200 Subject: [PATCH] helpers: repo: cache urls() (MR 2252) Signed-off-by: Caleb Connolly --- pmb/helpers/repo.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pmb/helpers/repo.py b/pmb/helpers/repo.py index c91ec3c6..31e160e2 100644 --- a/pmb/helpers/repo.py +++ b/pmb/helpers/repo.py @@ -51,8 +51,7 @@ def apkindex_hash(url: str, length: int=8) -> Path: return Path(f"APKINDEX.{ret}.tar.gz") -# FIXME: this function gets called way too much, needs to be -# cached +@Cache("user_repository", "mirrors_exclude") def urls(user_repository=True, mirrors_exclude: List[str] = []): """Get a list of repository URLs, as they are in /etc/apk/repositories.