distro: fixup package repo downloading and scanning

This commit is contained in:
InsanePrawn 2022-08-08 22:13:49 +02:00
parent ea7df92b7f
commit 597390c1e6
2 changed files with 4 additions and 3 deletions

View file

@ -12,7 +12,7 @@ from .package import PackageInfo
def resolve_url(url_template, repo_name: str, arch: str):
result = url_template
for template, replacement in {'$repo': repo_name, '$arch': config.runtime['arch']}.items():
for template, replacement in {'$repo': repo_name, '$arch': arch}.items():
result = result.replace(template, replacement)
return result