Fix a bug in unsigned OTA generation
Caller expects output_file to contain the final OTA, so we must copy data into that location. Modifying loca variables isn't enough. Test: make ota with --no_signing Change-Id: Id4aaefbc53b4250b7308701493d151f9408f47f1
This commit is contained in:
@@ -16,6 +16,7 @@ import copy
|
|||||||
import itertools
|
import itertools
|
||||||
import logging
|
import logging
|
||||||
import os
|
import os
|
||||||
|
import shutil
|
||||||
import struct
|
import struct
|
||||||
import zipfile
|
import zipfile
|
||||||
|
|
||||||
@@ -119,7 +120,7 @@ def FinalizeMetadata(metadata, input_file, output_file, needed_property_files):
|
|||||||
|
|
||||||
# Re-sign the package after updating the metadata entry.
|
# Re-sign the package after updating the metadata entry.
|
||||||
if OPTIONS.no_signing:
|
if OPTIONS.no_signing:
|
||||||
output_file = prelim_signing
|
shutil.copy(prelim_signing, output_file)
|
||||||
else:
|
else:
|
||||||
SignOutput(prelim_signing, output_file)
|
SignOutput(prelim_signing, output_file)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user