distro: bugfixes: use get_kupfer_url() in the right place to resolve branch placeholder, default some values

This commit is contained in:
InsanePrawn 2023-03-27 18:48:23 +02:00
parent f3c53e449b
commit e7fbcb6fbe
2 changed files with 5 additions and 2 deletions

View file

@ -135,7 +135,7 @@ def get_RepoInfo(arch: Arch, repo_config: AbstrRepoConfig, default_url: Optional
url = url.get(arch, default_url)
assert url
return RepoInfo(
url_template=url,
url_template=get_kupfer_url(url),
options=repo_config.get('options', None) or {},
)
@ -165,7 +165,7 @@ def get_kupfer_distro(
repo_config = get_repo_config()
if location == DistroLocation.REMOTE:
cache = _kupfer_https
default_url = get_kupfer_url(repo_config.remote_url or KUPFER_HTTPS)
default_url = repo_config.remote_url or KUPFER_HTTPS
repos = {repo: get_RepoInfo(arch, conf, default_url) for repo, conf in repo_config.repos.items() if not conf.local_only}
cls = RemoteDistro
elif location in [DistroLocation.CHROOT, DistroLocation.LOCAL]: