Skip to content
Snippets Groups Projects
Verified Commit 519a42bb authored by Newbyte's avatar Newbyte :snowflake:
Browse files

pmb.parse.bootimg: Fall back to empty string if mtk properties don't exist

This should match the previous behaviour and fix crashes when these
properties don't exist.

Tested with a htc-primou bootimg.

Fixes 826bb4f2
parent a1ff3a69
Branches
No related tags found
No related merge requests found
Pipeline #209288 passed
......@@ -192,8 +192,8 @@ def bootimg(path: Path) -> Bootimg:
tags_offset=output["tags_offset"],
pagesize=output["pagesize"],
header_version=output.get("header_version"),
mtk_label_kernel=output["mtk_label_kernel"],
mtk_label_ramdisk=output["mtk_label_ramdisk"],
mtk_label_kernel=output.get("mtk_label_kernel", ""),
mtk_label_ramdisk=output.get("mtk_label_ramdisk", ""),
)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment