repo: use new config.mirrors (MR 2252)

Use the new config.mirrors section to handle repository URLs instead of
the old mirror_alpine / mirrors_postmarketos options. This let's us
add the systemd staging repo automatically when on the systemd staging
branch / systemd is enabled.

Signed-off-by: Caleb Connolly <caleb@postmarketos.org>
This commit is contained in:
Caleb Connolly 2024-06-09 03:50:29 +02:00 committed by Oliver Smith
parent 1a01738d50
commit 133091248f
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB
5 changed files with 51 additions and 40 deletions

View file

@ -106,7 +106,7 @@ def auto(args: PmbArgs, dry=False):
""":returns: list of aport names, where the pkgrel needed to be changed"""
ret = []
for arch in Arch.supported():
paths = pmb.helpers.repo.apkindex_files(args, arch, alpine=False)
paths = pmb.helpers.repo.apkindex_files(arch, exclude_mirrors=["alpine"])
for path in paths:
logging.info(f"scan {path}")
index = pmb.parse.apkindex.parse(path, False)