tools/transparency: remove extraneous `\n` from payload.txt
The payload.txt file was created with an extra trailing `\n` that
is not required. Remove it.
While here, make 2 small typo corrections.
Bug: 190999214
Bug: 202855583
Test: Ran `python3 tools/transparency/pixel_factory_image_verify.py \
<path_to_image>` and received the expected payload.txt format.
Change-Id: I1b882be5f75cf18374e5065f84c08a56fea4b225
diff --git a/tools/transparency/pixel_factory_image_verify.py b/tools/transparency/pixel_factory_image_verify.py
index 56b33a1..c062f4c 100755
--- a/tools/transparency/pixel_factory_image_verify.py
+++ b/tools/transparency/pixel_factory_image_verify.py
@@ -114,7 +114,7 @@
with open('payload.txt', 'w') as f_out:
f_out.write(fingerprint.strip() + '\n')
- f_out.write(vbmeta_digest.strip() + '\n\n')
+ f_out.write(vbmeta_digest.strip() + '\n')
print('A corresponding "payload.txt" file has been created.')
sys.exit(0)
@@ -264,7 +264,7 @@
which contains a vbmeta.img patition.
Returns:
- True if the VBMeta protected parititions verify.
+ True if the VBMeta protected partitions verify.
"""
os.chdir(image_dir)
args = [self.avbtool_path,
@@ -305,7 +305,7 @@
return None
def _calculate_vbmeta_digest(self, image_dir):
- """Calculates the VBMeta Digest for given parititions using avbtool.
+ """Calculates the VBMeta Digest for given partitions using avbtool.
Args:
image_dir: The folder containing the unpacked factory image partitions,