factory_install: Make 'complete' and 'firmware' components optional.
When importing bundle into Umpire, unlike make_factory_package, Umpire
will only create entries with real file in JSON config.
As a result, we should ignore optional components if they are not
specified in server JSON file.
BUG=chromium:711615
TEST=Created a JSON config without complete & firmware, do factory_install.sh.
Change-Id: I9bcb4b57a88ea34429d166ab792eea5b646e50b2
Reviewed-on: https://chromium-review.googlesource.com/520867
Commit-Ready: Hung-Te Lin <hungte@chromium.org>
Tested-by: Hung-Te Lin <hungte@chromium.org>
Reviewed-by: Hung-Te Lin <hungte@chromium.org>
1 file changed