make mypy happy (MR 2252)

Signed-off-by: Caleb Connolly <caleb@postmarketos.org>
This commit is contained in:
Caleb Connolly 2024-06-13 05:35:30 +02:00 committed by Oliver Smith
parent f2ca9c618e
commit 0365438134
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB
10 changed files with 19 additions and 14 deletions

View file

@ -116,6 +116,8 @@ def flash_lk2nd(deviceinfo: Deviceinfo, method: str):
# Get the lk2nd package (which is a dependency of the device package)
device_pkg = f"device-{deviceinfo.codename}"
apkbuild = pmb.helpers.pmaports.get(device_pkg)
if not apkbuild:
raise RuntimeError(f"Failed to find {device_pkg} in pmaports")
lk2nd_pkg = None
for dep in apkbuild["depends"]:
if dep.startswith("lk2nd"):