diff options
author | Amin Hassani <ahassani@chromium.org> | 2019-05-06 17:40:49 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2019-06-20 21:16:52 -0700 |
commit | 7982100a403be400db0030cf9f18390eb021610e (patch) | |
tree | a797a388e19254cdbe9e81c872da5e6b9c72443c /scripts/update_payload/error.py | |
parent | b7ee3875756ec586ac45e75f0fad80f6c8e3680a (diff) |
update_engine: Add --properties_format flag to delta_generator
We need to be able to capture information about a payload by just
looking at it. These information needed for nebraska to be able to
process a response from a request. These information includes:
- Payload and its metadata hashes and sizes.
- Payload metadata signature.
- The APP ID of the original image.
- Whether the payload is a delta or full.
- The payload's target version.
This CL adds the ability to generate a json file with the payloads
properties such as above.
Also this CL refactors how this information is generated into a single
class.
BUG=chromium:960433
TEST=delta_generator --in_file=hello-signed-delta --properties_file=prop
TEST=delta_generator --in_file=hello-signed-delta
--properties_file=payload.json --properties_format="json"
Change-Id: Ia61be0bf37bcacfd82f8982a7977fdae2f18cb30
Reviewed-on: https://chromium-review.googlesource.com/1610801
Tested-by: Amin Hassani <ahassani@chromium.org>
Commit-Ready: ChromeOS CL Exonerator Bot <chromiumos-cl-exonerator@appspot.gserviceaccount.com>
Legacy-Commit-Queue: Commit Bot <commit-bot@chromium.org>
Reviewed-by: Sen Jiang <senj@chromium.org>
Reviewed-by: Nicolas Norvez <norvez@chromium.org>
Diffstat (limited to 'scripts/update_payload/error.py')
0 files changed, 0 insertions, 0 deletions