aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorDaniel Zheng <zhengdaniel@google.com>2024-05-02 18:10:51 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2024-05-02 18:10:51 +0000
commit76f13d280cd4794d1f1e3281006b92b0cf3d2905 (patch)
tree4e9a01a71701bfc5479ad3a5a30d851c5870fc47 /tools
parent7bff3a85f9454ca9dac90806e5c0a564a7883ff3 (diff)
parent7e4cc58f2d37b67192c2b4cc908ebf5f1bb6e4fe (diff)
downloadbuild-76f13d280cd4794d1f1e3281006b92b0cf3d2905.tar.gz
Merge "create_brick_ota: logic fix" into main
Diffstat (limited to 'tools')
-rw-r--r--tools/releasetools/create_brick_ota.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/releasetools/create_brick_ota.py b/tools/releasetools/create_brick_ota.py
index 9e040a53d4..bf50f71049 100644
--- a/tools/releasetools/create_brick_ota.py
+++ b/tools/releasetools/create_brick_ota.py
@@ -45,10 +45,10 @@ def CreateBrickOta(product_name: str, output_path: Path, extra_wipe_partitions:
partitions_to_wipe = PARTITIONS_TO_WIPE
if extra_wipe_partitions is not None:
partitions_to_wipe = PARTITIONS_TO_WIPE + extra_wipe_partitions.split(",")
- ota_metadata = ["ota-type=BRICK", "post-timestamp=9999999999",
- "pre-device=" + product_name]
- if serialno is not None:
- ota_metadata.append("serialno=" + serialno)
+ ota_metadata = ["ota-type=BRICK", "post-timestamp=9999999999",
+ "pre-device=" + product_name]
+ if serialno is not None:
+ ota_metadata.append("serialno=" + serialno)
# recovery requiers product name to be a | separated list
product_name = product_name.replace(",", "|")
with zipfile.ZipFile(output_path, "w") as zfp: