update_engine: fix verify for brillo major version
Currently since the major version is checked before the apply
payload (for brillo_update_payload verify), then it fails if there are
more or less than two partitions. This patch forces the major version to
whatever the target image is. This will not impact any production
procedure.
BUG=none
TEST=brillo_update_payload verify --payload=payload.delta --source_image=25-4k-gzip.img --target_image=61-4k-gzip.img
Change-Id: I0af9a56f9ad52c6b0670f7ace6c307d6071a1d7a
Reviewed-on: https://chromium-review.googlesource.com/629638
Commit-Ready: Amin Hassani <[email protected]>
Tested-by: Amin Hassani <[email protected]>
Reviewed-by: Ben Chan <[email protected]>
Reviewed-by: Sen Jiang <[email protected]>
(cherry picked from commit 70fce1e37af598f1bd28ae2bcdb62d597b64930d)
1 file changed