Do not append .meta_lic to meta_lic

Test: manual
Change-Id: I8d7162dc55f057d542faaa7feb546050d3a872e7
This commit is contained in:
Bob Badour
2022-01-10 17:59:14 -08:00
parent 8beddf2e7e
commit 63a281cc29

View File

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