Skip to content
Snippets Groups Projects
Unverified Commit fc44b642 authored by Newbyte's avatar Newbyte :snowflake:
Browse files

pmb.flasher.init: Assert that depends is a list (MR 2464)

pmaports_cfg.get() can return other types, too. As such, we need to
assert that it's a list to appease mypy.
parent d5586979
No related branches found
No related tags found
1 merge request!2464Add lots of type hints, fix some bugs, and clean up some code
This commit is part of merge request !2464. Comments created here will be created in the context of that merge request.
......@@ -36,6 +36,9 @@ def install_depends(method: str) -> None:
","
)
if not isinstance(depends, list):
raise RuntimeError(f"depends was {type(depends)}, not a list")
pmb.chroot.apk.install(depends, Chroot.native())
......
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