diff options
author | Android Build Role Account android-build-prod <android-build-team-robot@google.com> | 2020-12-15 11:05:46 +0000 |
---|---|---|
committer | Android Build Role Account android-build-prod <android-build-team-robot@google.com> | 2020-12-15 11:05:46 +0000 |
commit | 5d36de90488eb23effe6831eb7ff9ab1a6f4aee1 (patch) | |
tree | f1cba972cae9a60edeeecf4382ff0c6cede78a3d /scripts/update_device.py | |
parent | 04e59bc195bd8279b000582268d348aeba3fff29 (diff) | |
parent | 52ed81866a22fcfadb268ce1287a181a418f3eac (diff) |
Snap for 7033959 from 52ed81866a22fcfadb268ce1287a181a418f3eac to s-keystone-qcom-release
Change-Id: I5742ed3700eceb0a233e32ef0fca7608ad4e9996
Diffstat (limited to 'scripts/update_device.py')
-rwxr-xr-x | scripts/update_device.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/update_device.py b/scripts/update_device.py index 757c147e..354972b7 100755 --- a/scripts/update_device.py +++ b/scripts/update_device.py @@ -104,7 +104,7 @@ class AndroidOTAPackage(object): if payload_info.compress_type != 0: logging.error( - "Expected layload to be uncompressed, got compression method %d", + "Expected payload to be uncompressed, got compression method %d", payload_info.compress_type) # Don't use len(payload_info.extra). Because that returns size of extra # fields in central directory. We need to look at local file directory, @@ -125,10 +125,10 @@ class AndroidOTAPackage(object): payload_header = fp.read(4) if payload_header != self.PAYLOAD_MAGIC_HEADER: logging.warning( - "Invalid header, expeted %s, got %s." + "Invalid header, expected %s, got %s." "Either the offset is not correct, or payload is corrupted", binascii.hexlify(self.PAYLOAD_MAGIC_HEADER), - payload_header) + binascii.hexlify(payload_header)) property_entry = (self.SECONDARY_OTA_PAYLOAD_PROPERTIES_TXT if secondary_payload else self.OTA_PAYLOAD_PROPERTIES_TXT) |