Filter defaults from license metadata dependencies.

Bug: 239638693

Test: m droid dist
Change-Id: Ic094aa706145ddd1cb8a1b134117c83ad41061b7
This commit is contained in:
Bob Badour 2022-07-29 11:18:12 -07:00
parent cf3844c879
commit 7fd521e62e

View file

@ -67,6 +67,11 @@ func buildLicenseMetadata(ctx ModuleContext, licenseMetadataFile WritablePath) {
return
}
// Defaults add properties and dependencies that get processed on their own.
if ctx.OtherModuleDependencyTag(dep) == DefaultsDepTag {
return
}
if ctx.OtherModuleHasProvider(dep, LicenseMetadataProvider) {
info := ctx.OtherModuleProvider(dep, LicenseMetadataProvider).(*LicenseMetadataInfo)
allDepMetadataFiles = append(allDepMetadataFiles, info.LicenseMetadataPath)