payload-extractor: Add .img to output file name

Change-Id: I3d4a0a5fccf3c0cfe7af6406629f29121870f501
This commit is contained in:
razorloves
2020-03-15 22:07:03 -05:00
parent 6753c15f61
commit fb5db09cea

View File

@@ -38,7 +38,7 @@ def extract(payload_file_name, output_dir="output", partition_names=None):
if partition_names and part.partition_name not in partition_names:
continue
print("Extracting {}".format(part.partition_name))
output_file = os.path.join(output_dir, part.partition_name)
output_file = os.path.join(output_dir, part.partition_name + '.img')
helper._ApplyToPartition(
part.operations, part.partition_name,
'install_operations', output_file,