Switch noticeindex from regex to proto.

Bug: 254534552

Test: m droid dist cts alllicensemetadata

Test: repo forall -c 'echo -n "$REPO_PATH  " && $ANDROID_BUILD_TOP/out/host/linux-x86/bin/compliance_checkmetadata . 2>&1' | fgrep -v PASS

Change-Id: I34dfe143cdc88432d6e33abee096409a37ce3b7e
This commit is contained in:
Bob Badour
2022-10-17 17:40:04 -07:00
parent d6574e5c97
commit ab5cfbd5b7
7 changed files with 516 additions and 146 deletions

View File

@@ -24,6 +24,7 @@ import (
"io/fs"
"os"
"path/filepath"
"sort"
"strings"
"android/soong/response"
@@ -275,7 +276,8 @@ func htmlNotice(ctx *context, files ...string) error {
}
fmt.Fprintln(ctx.stdout, "</body></html>")
*ctx.deps = ni.InputNoticeFiles()
*ctx.deps = ni.InputFiles()
sort.Strings(*ctx.deps)
return nil
}