forked from Mirror/pmbootstrap
helpers: repo: cache urls() (MR 2252)
Signed-off-by: Caleb Connolly <caleb@postmarketos.org>
This commit is contained in:
parent
e087e7c665
commit
aedab4df73
1 changed files with 1 additions and 2 deletions
|
@ -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.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue