sbom_info_lib: add support for license.json

ChromeOS moved from license.yaml to license.json.

We still support both in the install hook for now, because we may
install binary packages that were built before the license.json switch.

BUG=b/307995090
TEST=presubmit
RELEASE_NOTE=None

Change-Id: I74ff4fb16fdcc4d33b2ec276ba0e6471aea4391d
Reviewed-on: https://cos-review.googlesource.com/c/third_party/platform/crosutils/+/64715
Tested-by: Cusky Presubmit Bot <presubmit@cos-infra-prod.iam.gserviceaccount.com>
Reviewed-by: He Gao <hegao@google.com>
1 file changed