Skip to content

Commit

Permalink
vendor: fix missing include of dynamic_partitions_op_list
Browse files Browse the repository at this point in the history
Signed-off-by: yshalsager <ysh-alsager@hotmail.com>
  • Loading branch information
yshalsager committed Jun 1, 2021
1 parent b01f6c8 commit 022ce9c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "xiaomi_flashable_firmware_creator"
version = "2.2.1"
version = "2.2.2"
description = "Create flashable firmware zip from MIUI Recovery ROMs!"
authors = ["yshalsager <ysh-alsager@hotmail.com>"]
license = "GPL-3.0-only"
Expand Down
5 changes: 3 additions & 2 deletions xiaomi_flashable_firmware_creator/firmware_creator.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def __init__(self, input_file, _extract_mode, out_dir=""):
self.firmware_excluded_files = ['dtbo', 'logo', 'splash', 'vbmeta', 'boot.img', 'system',
'vendor', 'product', 'odm', 'exaid',
'dynamic_partitions_op_list']
self.vendor_excluded_files = ['logo', 'splash', 'vbmeta', 'system', 'product.', 'odm.', 'exaid',]
self.vendor_excluded_files = ['vbmeta', 'system', 'product.', 'odm.' ]
self.extractor = ZipExtractor(self.input_file, self._tmp_dir)
self.init()

Expand Down Expand Up @@ -199,7 +199,8 @@ def get_updater_script_lines(self) -> str:
elif self.extract_mode is ProcessTypes.vendor:
lines = [line for line in original_updater_script
if "getprop" in line or "Target" in line
or "firmware-update" in line
or "dynamic_partitions_op_list" in line
or "firmware-update" in line and "vbmeta" not in line
or "vendor" in line] if self.type is ZipTypes.qcom \
else [line for line in original_updater_script if
"system" not in line and 'boot.img' not in line]
Expand Down

0 comments on commit 022ce9c

Please sign in to comment.