summaryrefslogtreecommitdiff
path: root/scripts/update_device.py
diff options
context:
space:
mode:
authorKelvin Zhang <zhangkelvin@google.com>2020-12-01 10:45:09 -0500
committerKelvin Zhang <zhangkelvin@google.com>2020-12-02 10:55:04 -0500
commit07676f5c38f146c5242c0a30edba57224b540e8e (patch)
treeb358adcd61e0ce9480b1871e492ff670ab656fa4 /scripts/update_device.py
parente4235b0ae49ec069c056653dd3764793f2f8a82f (diff)
Fix English typo in update_device.py
Test: treehugger Change-Id: I748be77b7d8fe4bbc63f1edc672e5c32be6e8c91
Diffstat (limited to 'scripts/update_device.py')
-rwxr-xr-xscripts/update_device.py6
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)