nebraska: Fix a few issues
- A nit: Eliminate all \ line breakers.
- Set the metadata signature to empty string when its value is null
otherwise the XML element tree will break.
- Attach / at the end of update and install payload addresses otherwise
the update engine just concatenates the base address to the payload
file name and if there is no /, the address will be invalid.
- sha256_hex is in base64 format (generated by paygen), not hex. convert
it when reading from json files.
BUG=chromium:920404
TEST=unittest
TEST=cros flash
Change-Id: Ie9dcaeb35be6c02d9387d1c9a25fb9fda1fed554
Reviewed-on: https://chromium-review.googlesource.com/1592552
Commit-Ready: Amin Hassani <ahassani@chromium.org>
Tested-by: Amin Hassani <ahassani@chromium.org>
Legacy-Commit-Queue: Commit Bot <commit-bot@chromium.org>
Reviewed-by: Xiaochu Liu <xiaochu@chromium.org>
3 files changed