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

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

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

Tested with a htc-primou bootimg.

Fixes 826bb4f2
[ci:skip-build]: already built successfully in CI
parent a1ff3a69
No related branches found
No related tags found
No related merge requests found
Pipeline #209333 failed
......@@ -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.
Finish editing this message first!
Please register or to comment