Skip to content
Snippets Groups Projects
Verified Commit 8aa3b034 authored by Newbyte's avatar Newbyte :snowflake: Committed by Newbyte
Browse files

pmb.chroot.apk: Type hint package list in packages_get_locally_built_apks (MR 2425)

parent 71772b9b
No related branches found
No related tags found
1 merge request!2425pmb.parse.apkindex: Introduce proper typing
......@@ -126,7 +126,7 @@ def packages_split_to_add_del(packages):
return (to_add, to_del)
def packages_get_locally_built_apks(packages, arch: Arch) -> list[Path]:
def packages_get_locally_built_apks(package_list: list[str], arch: Arch) -> list[Path]:
"""
Iterate over packages and if existing, get paths to locally built packages.
This is used to force apk to upgrade packages to newer local versions, even
......@@ -141,7 +141,7 @@ def packages_get_locally_built_apks(packages, arch: Arch) -> list[Path]:
channels: list[str] = pmb.config.pmaports.all_channels()
local: list[Path] = []
packages = set(packages)
packages = set(package_list)
walked: set[str] = set()
while len(packages):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment