Merge "Open ab_partitions.txt with just read access" am: f9a6f5f06b
am: b5535214ad
am: 4cd34e5ce6
Original change: https://android-review.googlesource.com/c/platform/build/+/2611511 Change-Id: I263ecf630f7e62caaa6a70e4642f02122dfb64d0 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
commit
eb6c9b7921
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