Skip to content

Commit 4135503

Browse files
committed
extract_utils: copy pixel firmware when --pixel-firmware is specified
Change-Id: I53929d174fc2dbc5ea576560b4f8c7c295cab066
1 parent 3ccfa37 commit 4135503

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

extract.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
from extract_utils.extract import ExtractCtx, ExtractFn, extract_fns_type
1212
from extract_utils.extract_misc import ExtractRenameSuperToExtVolumeName
1313
from extract_utils.extract_pixel import (
14+
copy_pixel_firmware,
1415
extract_pixel_factory_image,
1516
extract_pixel_firmware,
1617
pixel_factory_image_regex,
@@ -119,7 +120,13 @@
119120
if args.pixel_firmware:
120121
for extract_pattern in args.pixel_firmware:
121122
extract_fns.append(
122-
ExtractFn(extract_pattern, extract_pixel_firmware)
123+
ExtractFn(
124+
extract_pattern,
125+
path_fns=[
126+
copy_pixel_firmware,
127+
extract_pixel_firmware,
128+
],
129+
)
123130
)
124131

125132
if args.star_firmware:

0 commit comments

Comments
 (0)