Merge "Do not append .meta_lic to meta_lic" am: 9d83209f12 am: 0f12de8954

Original change: https://android-review.googlesource.com/c/platform/build/+/1944764

Change-Id: I6e619d6c4a563d3294cd0fb7431b9d5bbbb2f799
This commit is contained in:
Treehugger Robot
2022-01-11 06:43:24 +00:00
committed by Automerger Merge Worker

View File

@@ -80,7 +80,7 @@ func ReadLicenseGraph(rootFS fs.FS, stderr io.Writer, files []string) (*LicenseG
lg := newLicenseGraph() lg := newLicenseGraph()
for _, f := range files { for _, f := range files {
if strings.HasSuffix(f, ".meta_lic") { if strings.HasSuffix(f, "meta_lic") {
lg.rootFiles = append(lg.rootFiles, f) lg.rootFiles = append(lg.rootFiles, f)
} else { } else {
lg.rootFiles = append(lg.rootFiles, f+".meta_lic") lg.rootFiles = append(lg.rootFiles, f+".meta_lic")