aboutsummaryrefslogtreecommitdiffstats
path: root/tools/releasetools/ota_utils.py
diff options
context:
space:
mode:
authorYifan Hong <elsk@google.com>2021-01-07 14:09:57 -0800
committerYifan Hong <elsk@google.com>2021-01-07 17:20:22 -0800
commit5057b95572428ee59922431017a37f119c9b006a (patch)
treeba15fb64aa73fad102908e16096b7e0916268498 /tools/releasetools/ota_utils.py
parentc65a0545dde5b94bf5c622fbc292bcd2e8cb393d (diff)
downloadplatform_build-5057b95572428ee59922431017a37f119c9b006a.tar.gz
platform_build-5057b95572428ee59922431017a37f119c9b006a.tar.bz2
platform_build-5057b95572428ee59922431017a37f119c9b006a.zip
Split PARTITIONS_WITH_BUILD_PROP from *_WITH_CARE_MAP
Right now they are the same content. In the future, boot will be added to PARTITIONS_WITH_BUILD_PROP, but it is not added to PARTITIONS_WITH_CARE_MAP. Boot partition has a cpio filesystem in the ramdisk, so it contains a build.prop file, but it doesn't make sense to create care map from it. Test: TH Bug: 162623577 Change-Id: I9b5a20fe2d774b52cf7d5eae9deecbc75122a3dd
Diffstat (limited to 'tools/releasetools/ota_utils.py')
-rw-r--r--tools/releasetools/ota_utils.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/releasetools/ota_utils.py b/tools/releasetools/ota_utils.py
index be6a13495b..6bbcc923bb 100644
--- a/tools/releasetools/ota_utils.py
+++ b/tools/releasetools/ota_utils.py
@@ -21,7 +21,7 @@ import zipfile
import ota_metadata_pb2
from common import (ZipDelete, ZipClose, OPTIONS, MakeTempFile,
ZipWriteStr, BuildInfo, LoadDictionaryFromFile,
- SignFile, PARTITIONS_WITH_CARE_MAP, PartitionBuildProps)
+ SignFile, PARTITIONS_WITH_BUILD_PROP, PartitionBuildProps)
logger = logging.getLogger(__name__)
@@ -174,7 +174,7 @@ def UpdateDeviceState(device_state, build_info, boot_variable_values,
# delta_generator will error out on unused timestamps,
# so only generate timestamps for dynamic partitions
# used in OTA update.
- for partition in sorted(set(PARTITIONS_WITH_CARE_MAP) & ab_partitions):
+ for partition in sorted(set(PARTITIONS_WITH_BUILD_PROP) & ab_partitions):
partition_prop = build_info.info_dict.get(
'{}.build.prop'.format(partition))
# Skip if the partition is missing, or it doesn't have a build.prop
@@ -360,7 +360,7 @@ def ComputeRuntimeBuildInfos(default_build_info, boot_variable_values):
# Reload the info_dict as some build properties may change their values
# based on the value of ro.boot* properties.
info_dict = copy.deepcopy(default_build_info.info_dict)
- for partition in PARTITIONS_WITH_CARE_MAP:
+ for partition in PARTITIONS_WITH_BUILD_PROP:
partition_prop_key = "{}.build.prop".format(partition)
input_file = info_dict[partition_prop_key].input_file
if isinstance(input_file, zipfile.ZipFile):