Skip to content

Commit e400cfc

Browse files
committed
extract_utils: fix unslot_partition() for unslotted system_ext
Prior to this change, it'd unslot "system_ext" into "system" and overwrite system.img with it. Change-Id: I968bf9c7f26a87ba1668d74dccc21be3a0641a8b
1 parent 55822a5 commit e400cfc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

extract_utils/extract.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ def extract_sparse_raw_imgs(file_paths: List[str], output_dir: str):
435435

436436

437437
def unslot_partition(partition_slot: str):
438-
return partition_slot.rsplit('_', 1)[0]
438+
return re.sub(r'_[abc]$', '', partition_slot)
439439

440440

441441
def _extract_super_img(

0 commit comments

Comments
 (0)