Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 42c7918f authored by Kelvin Zhang's avatar Kelvin Zhang Committed by Automerger Merge Worker
Browse files

Merge identical key/val pairs in dynamic partition info am: f4406ca1 am: 99e57ceb

parents d4d77370 99e57ceb
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -1191,6 +1191,10 @@ def MergeDynamicPartitionInfoDicts(framework_dict, vendor_dict):
    raise ValueError("Both dictionaries must have use_dynamic_partitions=true")

  merged_dict = {"use_dynamic_partitions": "true"}
  # For keys-value pairs that are the same, copy to merged dict
  for key in vendor_dict.keys():
    if key in framework_dict and framework_dict[key] == vendor_dict[key]:
      merged_dict[key] = vendor_dict[key]

  merged_dict["dynamic_partition_list"] = uniq_concat(
      framework_dict.get("dynamic_partition_list", ""),