Merge "Open ab_partitions.txt with just read access"
This commit is contained in:
commit
f9a6f5f06b
1 changed files with 2 additions and 2 deletions
|
@ -817,8 +817,8 @@ class PayloadGenerator(object):
|
|||
target_dir = ExtractTargetFiles(target_file)
|
||||
cmd = ["delta_generator",
|
||||
"--out_file", payload_file]
|
||||
with open(os.path.join(target_dir, "META", "ab_partitions.txt")) as fp:
|
||||
ab_partitions = fp.read().strip().split("\n")
|
||||
with open(os.path.join(target_dir, "META", "ab_partitions.txt"), "r") as fp:
|
||||
ab_partitions = fp.read().strip().splitlines()
|
||||
cmd.extend(["--partition_names", ":".join(ab_partitions)])
|
||||
cmd.extend(
|
||||
["--new_partitions", GetPartitionImages(target_dir, ab_partitions, False)])
|
||||
|
|
Loading…
Reference in a new issue