commit | 6c70b934f24d3d1b14795f34e8504e2a05f85c95 | [log] [tgz] |
---|---|---|
author | Tianjie Xu <xunchang@google.com> | Tue Oct 22 16:46:00 2019 -0700 |
committer | Tianjie Xu <xunchang@google.com> | Tue Oct 22 16:46:00 2019 -0700 |
tree | efe7bbcb6547d198ca82556e0834d2294d69a852 | |
parent | b38e1afa1f1df3c6b00543c6f4edb015985e1037 [diff] |
Fix the behavior for metadata verification when no public key presents The old behavior actually checks if the hash check is mandatory (install_plan_->hash_checks_mandatory). And it reports an warning instead of an error for non-mandatory checks when there is no public key presents. Change the logic to match the old behavior. Test: unit tests pass, run 'brillo_update_payload verify' without a source image. Change-Id: Ie9be7553ec018c1c7fd515a462190c2376c67e4c